![]() |
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 |
Re: TForm2.Create(application) taskbar problem
Very interesting :S
Now i tested this code in new application it works well but i dont understand why not working my other application :S |
Re: TForm2.Create(application) taskbar problem
Hi,
maybe you have got code, whichs blocks the system menu? |
Re: TForm2.Create(application) taskbar problem
May be ..
Im looking now that.. So if i want change system menu with which i created popup menu is possible ? |
Re: TForm2.Create(application) taskbar problem
Zitat:
Anyway, if I've got you meant, you can change the system menu of course. But the only way I know is pure API code, which means you create a menu item (all non vcl, so it's going to be pure code) and then attach it to the system menu. There are ways to do that(but I don't remember the exact commands) so a little search on google (it's API-Code so there aren't too much differences between delphi or c++ for example, so: No matter which language you find the solution in, it should be easy to translate, and if not there should be someone around here who can ;) ) or in this forum should help you. Regards, Max |
Re: TForm2.Create(application) taskbar problem
I Found my problem..
I used Tskinstore and Tskindata components when i deleted this components on form The code is exactly working. Now how can i solve this problem i dont know... |
Re: TForm2.Create(application) taskbar problem
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:09 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