Autor Beitrag
Patriol
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Fr 30.12.05 00:35 
Hallo,

ich erzeuge aus einem form ein weiteres form was die eigenschaft "borderstyle = bsdialog" hat und lasse mir es modal anzeigen. leider wird mir in der taskleiste für das form n neuer eintrag angelegt. wie kann ich verhindern das mir da n neuer eintrag angelegt wird?

thx im voraus.
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Fr 30.12.05 11:54 
mit folgendem code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
ShowWindow( Application.Handle, SW_HIDE );
SetWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);
ShowWindow( Application.Handle, SW_SHOW );


P.S.: probier mal die suchfunktion, hab den code nämlich aus dem forum :wink:
Patriol Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Fr 30.12.05 17:36 
nee leider funzt das nich ...
hab den code ins onshow-ereignis des forms gepackt aber es wird mir wieder ein eintrag in die taskleiste für das form angelegt.

Zitat:
P.S.: probier mal die suchfunktion, hab den code nämlich aus dem forum


hab auch n bissl über suchfunktion gesucht nur hab ich da nich so richtig was gefunden... den code den du mir gegeben hast hab ich auch entdeckt, nur war der nich um extra ein eintrag in der taskleiste anzuzeigen?
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: So 01.01.06 18:16 
ich hab den code bei oncreate hineingeschriebn und da hats gefunzt.

der code ist unter einem etwas anderen zusammenhang dringestanden. ich hab ihn übrigens mit google gefunden, nicht mit der forumsuche. :wink:
Patriol Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Mo 02.01.06 23:39 
na ich denke ma es sollte nich so die große rolle spielen ob dis im oncreate oder onshow steht ... jedenfalls funzt dis bei beiden nich.

hat nich irgendjmd noch ne andere idee?