Autor Beitrag
NeoXan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 81

WinXP Sp1 Home
D7 Prof
BeitragVerfasst: So 28.12.03 14:59 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
  // Enable Start Replacer ;)
  if (isStartAllowed <> false) then <span style="font-weight: bold"><span style="color: red">ReplaceStartBtn </span></span>else
  ShowStartButton(true);

  // Hide Ourselves into the SystemTray
  Application.OnMinimize := ApplicationMinimize;
  <span style="font-weight: bold"><span style="color: red">ApplicationMinimize(nil)</span></span>;


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure Minimize
with Self do begin
    Visible := False;
    Width := 0;
    Height := 0;
  end;


Ganz einfach, der Start Button wird ersetzt indem er erstmal ausgeschaltet wird, dann wird an der Position ein neues Form Created und darin ein Button gesetzt etc.

Das Problem ist aber, dass nun mein MainForm nicht richtig verschwindet...sonder es lediglich unten in der Taskleiste minimiert verweilt...(geht auch nicht mit Application.ShowMainForm := false;)

Wenn ich aber den Start Button so lasse wie er ist, dann verschwindet auch alles hübsch...

mfg
NeoXan
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 21:54 
Hallo,

Start-Button? Meinst du DEN Start-Button oder den Button, den jede App in der Tstkbar hat? solltest auch mal zeigen, was ShowStartButton() macht! Außerdem ist es nicht nötig, die GRöß edes Forms auf 0 zu setztn, nur unnötig arbeit. Es langt, Form1.Hide() aufzurufen. Um den Button in der Taskleiste zu verbergen machst du Application.Hide().

_________________
Life is a bad adventure, but the graphic is really good!
NeoXan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 81

WinXP Sp1 Home
D7 Prof
BeitragVerfasst: Di 30.12.03 23:32 
DER Startbutton...von Windows...da unten in der Taskleiste gaaaaanz links (normalerweise)...yoah...ich poste morgen mal den Source...muss jetzt leider wech ;)