Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Do 20.10.05 13:07 
Hallo, ich habe nach dem Beispiel hier www.delphi-library.d...7e872b54a&t=8294
Application.OnMinimize das Programm in den SysTray gesetzt aber dann geht minimieren nur einmal?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure TMainForm.OnMinimizeMe(Sender: TObject);
begin
    Hide;
    Shell_NotifyIcon (NIM_ADD, @fIconData); // Beim Minimieren Verstecken und ein Icon zur SysTray hinzufügen
end;

procedure TMainForm.FormDestroy(Sender: TObject);
begin
    Shell_NotifyIcon (NIM_DELETE, @fIconData);  // Beim Beenden Icon auf jeden Fall weg
end;

procedure TMainForm.TaskTrayWndProc(var Msg: TMessage);
begin
    case Msg.LParam of   
    WM_LBUTTONDOWN: begin
                    Shell_NotifyIcon (NIM_DELETE, @fIconData);  // Icon au der Systray entfernen
                    Show;                                       // anzeigen
                    end;
    end;
end;


Wieso läßt es sich nur einmal minimieren?
Sprotti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mo 24.10.05 16:03 
Titel: restore nehmen
hallo, hatte das gleiche problem als ich das fenster nicht mit restore sondern über wsMaximize wieder groß gemacht hatte.
Seit ich restore nehme geht alles prima
gruß sprotti
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mo 24.10.05 17:13 
Titel: Re: restore nehmen
Vielen Dank! :wink:
the_immortal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78



BeitragVerfasst: So 06.11.05 11:51 
Ich habe es jetzt auch mit dem Restore gemacht und man kann mehr als einmal minimieren, jedoch habe ich das Problem, dass das Form nicht mehr geHided wird es ist nur beim ersten Minimizen nicht mehr sichtbar :/!