Autor Beitrag
Killmag10
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Di 28.06.05 14:27 
Hi

Wie kann ich es zb so machen wie Winamp´es macht ??

Also einfach das ich Grafiken an alle stellen und in allen Formen auf den desktop anzeigen kann...

muss ich da mit DX arbeiten ???

Und vorallem wie kann ich es anstellen ???

mfg. Killmag10

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik


Zuletzt bearbeitet von Killmag10 am Di 28.06.05 14:43, insgesamt 1-mal bearbeitet
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Di 28.06.05 14:38 
Mit DX musst du nicht arbeiten ;), wäre auch unnutzt. Die Komponenten von WinAmp kannst du versuchen nachzumachen über Vererbung (auch beim Formular geht das) oder durch Canvas.
Killmag10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Di 28.06.05 14:40 
ja wie kann ich das genau machen ???

und wie kann man den bei canvas über seine Form hinaus zeichnen ???

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Di 28.06.05 16:10 
Mit Canvas kannst so auf den Desktop zeichnen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
procedure TForm1.Button1Click(Sender: TObject);
var
 DCanvas: TCanvas;
 DHandle: HWND;
begin
 DHandle:=GetDC(0);
 if DHandle<>0 then
 begin
   try
     DCanvas:=TCanvas.Create;
     try
       DCanvas.Handle:=DHandle;
       DCanvas.Font.Color:=clRed;
       DCanvas.Font.Size:=72;
       DCanvas.Brush.Style:=bsClear;
       DCanvas.TextOut(10, 10, 'Ein Schriftzug');
     finally
       DCanvas.Free;
     end;
    finally
      if ReleaseDc(0, DHandle)<>1 then
        RaiseLastOSError;
    end;
 end
 else
   RaiseLastOSError;
end;
Killmag10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Mi 29.06.05 08:31 
danke da funktioniert soweit ganz gut..

doch wie kann ich das gezeichnette wieder entfernen ???


und dann hab ich noch das problem das es sich mit mausdrüberfahren langsamm auflöst...


doch wenn ich das fenster oder die zeichnung wie bei winamp reinfaden lassen will werd ich doch bestimmt nich um DX oder opengl rumkommen oder ???

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 29.06.05 09:47 
Ich habe mir gerade WinAmp runtergeladen. Nun aber eine Frage von meiner Seite dazu, wo zeichnet das Programm auf den Desktop?
Killmag10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Mi 29.06.05 10:06 
user profile iconHeiko hat folgendes geschrieben:
Ich habe mir gerade WinAmp runtergeladen. Nun aber eine Frage von meiner Seite dazu, wo zeichnet das Programm auf den Desktop?


wenn man den song wächselt wird bei machen skins der nächste titel eingeblendet oder andere effekte wo ihrgentwas eingeblendet wird...

und wie macht das winamp eigendlich das keine normale fensterform hatt ???

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 29.06.05 11:31 
Dafür gibt es zwei Möglichkeiten:

TransparentColor der Form (IIRC ab D6)
oder per GDI: BeginRegion \ EndRegion

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.