![]() |
TForm2.Create(application) taskbar problem
Hi all ;
I have two form Form1 and form2 This project is client chat project. if i want to talk with somebody i create a form like frm := TForm2.Create(application); When i created tform2 as frm i want to show this window in taskbar and i used this procedure
Delphi-Quellcode:
But there is a problem. When i right click (mouse) form2 on taskbar i cant see original popup
procedure TForm2.CreateParams(var Params: TCreateParams);
begin inherited CreateParams(params); with Params do begin ExStyle:= ExStyle or WS_EX_APPWINDOW; WndParent:= GetDesktopWindow; end; end; Close , Minimize , Maximize etc.. How can i see this menu ? Regards; |
Re: TForm2.Create(application) taskbar problem
If you use a recent version of Delphi (2006 or 2007), you have a component called TTrayIcon.
If not, use the ![]() |
Re: TForm2.Create(application) taskbar problem
I don't thimk that's his problem. He doesn't want an icon in the TNA. He is missing the system menu items of the taskbar button of his window like "Minimze" or "Move".
|
Re: TForm2.Create(application) taskbar problem
My fault, sorry.
For me, the code is working :gruebel: |
Re: TForm2.Create(application) taskbar problem
Zitat:
Regards |
Re: TForm2.Create(application) taskbar problem
Moin,
If I may ask: Which Delphi-Version do you use? Edit: Another thing which might cause such a problem is that you've changed somewhere window-specific properties, like setting the window-style to a Dialog-one. Such things might change the window's behavior especially concerning the system-menu (which is the name of the menu you have problems with ;) ) Regards, Max |
Re: TForm2.Create(application) taskbar problem
Same to me: Code is working right.
|
Re: TForm2.Create(application) taskbar problem
Code is working i dont have problem about this code
But i cant see system menu on taskbar (form2) Version of delphi : Delphi 7 Enterprise borderstyle bssizeable formstyle fsnormal |
Re: TForm2.Create(application) taskbar problem
ok. You have a mainmenu on Form2 and you want that mainmenu on the taskbar?
|
Re: TForm2.Create(application) taskbar problem
Zitat:
Like luckie's said I have only this problem |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:26 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz