Autor Beitrag
Real-TTX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Mi 31.08.05 10:28 
Hi,

Wie lege ich mein Programm in den Tray sobald es minimiert ist ? Und beim Doppel Klicken auf das TrayIcon des Programmes soll es in den vorherigen zustand wieder ... Habe leider nix passendes gefunden , Ich nutze D7E :)

mfg
Real-TTX


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Mi 31.08.2005 um 11:39
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 31.08.05 10:34 
Zitat:
Habe leider nix passendes gefunden
:rofl: Suche in: Delphi-Forum, Delphi-Library TRAY

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Real-TTX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Mi 31.08.05 11:20 
Wo ist dein Problem ? :)

NIX PASSENDES GEFUNDEN... , du schreibst es noch als quote :D ...
Kann auch daran liegen dass ich kein CoolTray... verwenden will bzw kann D7E nicht(?), und ich leider nur für D6 gefunden habe ... :)

mfg
Real-TTX
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 31.08.05 11:29 
Ja, genau. Du bist der erste, der das ohne macht :roll: Wenn es Dir zu mühselig ist, für Dein auch noch ein paar Threas lesen zu müssen, kannst Du die Suche auch mal auf die FAQs eingrenzen.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Real-TTX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Mi 31.08.05 13:42 
Hmm .. Gibt es eine genaue Docu. zu CoolTray, bzw ich bekomme es nicht zum laufen, ich habe gelesen dass es CoolTray für D5 D6 gibt aber für D7 , stand nichts dabei ... Oder hat wer einen Link zu der Offiziellen Seite von CoolTray ?

mfg
Real-TTX
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 31.08.05 16:04 
Christian hat dir ja oben schon einen Such-Link gepostet. Die Suche findet unter dem Begriff Tray ganze 163 Threads, und bei denen geht es bei weitem nicht bei allen nur um CoolTray! Wenn du also ein bisschen mehr Eigeninitiative ergreifst und dir mal die Suchergebnisse etwas genauer anschaust, wirst du finden was du suchst!

Gruß, Motzi

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Stefan-W
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 475

Win 7 SP1
D2005 PE
BeitragVerfasst: Mi 31.08.05 16:54 
also bei mir geht das CoolTray von D6 ohne weiteres mit D7PE und D7E hab ich schon oft "getestet"
Real-TTX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Do 01.09.05 23:10 
Hi,

Habe das nun fast Hinbekommen , Wenn ich das Programm Minimiere dann ist es in der Taskleiste verschwunnden nur noch im Tray vorhanden , Wenn ich es Maximiere , ist es wieder vorhanden , Zwar minimiert in der Taskleiste aber es ging ... , Nun wenn ich es dann nochmal mache funktioniert es nicht mehr....!

Nun Vllt kann mir einer sagen wie das Functioniert, Und ich möchte auch das das Progrann wueder Offen ist nach dem Links Klicken auf das Tray Symbol und nicht Minimiert,Und wenn man das Programm Schlies ist das Tray-Simbol noch vorhanden .. dass sollte auch entfernen , nun der bisherige Code :


ausblenden volle Höhe 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:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs,ShellApi;

const
  cWM_MYTRAYICONCALLBACK = WM_USER + 1000;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
  private
    procedure onMinimize(Sender: TObject);
    procedure TaskTrayWndProc (var Msg: TMessage); message cWM_MYTRAYICONCALLBACK;
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}
var
  TNAIcon: TNOTIFYICONDATA;

procedure TForm1.FormCreate(Sender: TObject);
begin
    Application.OnMinimize:=onMinimize;
     with TNAIcon do
     begin
         cbSize := SizeOf (TNAIcon);
         Wnd := Handle;
         uID := 1;
         uFlags := NIF_MESSAGE + NIF_ICON + NIF_TIP;
         hIcon := Application.Icon.Handle;
         szTip := 'Dein Tool-Tip';
         uCallBackMessage := cWM_MYTRAYICONCALLBACK;
     end;
     Shell_NotifyIcon (NIM_ADD, @TNAIcon);
end;


procedure TForm1.onMinimize (Sender: TObject);
begin
     Form1.Hide;
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
     Shell_NotifyIcon (NIM_DELETE, @TNAIcon);
end;

procedure TForm1.TaskTrayWndProc (var Msg: TMessage);
begin
     case Msg.LParam of WM_LBUTTONDOWN:  //Linksklick
     begin
          Form1.Show;
     end;
     (*WM_RBUTTONDOWN:  //Rechtsklick
     begin
          GetCursorPos(point);
          TNAPopup.Popup(point.x, point.y);
     end;  *)

      end;
end;


end.


Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.