Autor Beitrag
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 06.02.05 00:02 
wenn ich eine anwendung mit tna habe und die form minimiere soll sie sich aus blenden. wie kann ich das anstellen?? das funtz leider nicht
ausblenden Delphi-Quelltext
1:
if WindowState = wsMinimized then Hide;					


Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am So 06.02.2005 um 17:10
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: So 06.02.05 11:54 
Also du überschreibst das Event Application.OnMinimize und Application.OnRestore
ausblenden Delphi-Quelltext
1:
2:
Application.OnMinimize := MinimizeToTNA;
Application.OnRestore := HideTaskButton;

dann erstellst du die proceduren:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.MinimizeToTNA(Sender: TObject);
begin
  ShowWindow(Application.Handle, SW_HIDE);
end;

und
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.HideTaskButton(Sender: TObject);
begin
  ShowWindow(Application.Handle, SW_HIDE);
end;


und das wars auch schon :)

mfg matze

_________________
si tacuisses, philosophus mansisses.
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: So 06.02.05 15:42 
es geht jetzt danke
gruß
Harry M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mi 09.02.05 13:34 
wollte das ganze eben verwenden, und mußte feststellen, das es nur für das hauptformular gilt, aber wie sollich es denn machen wenn sich nen andere form verstecken soll?????