AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

TForm2.Create(application) taskbar problem

Ein Thema von trolojik2 · begonnen am 28. Jul 2007 · letzter Beitrag vom 28. Jul 2007
Antwort Antwort
Seite 1 von 2  1 2   
trolojik2

Registriert seit: 27. Jul 2007
14 Beiträge
 
#1

TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 01:47
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:
procedure TForm2.CreateParams(var Params: TCreateParams);
begin
 inherited CreateParams(params);
 with Params do
 begin
  ExStyle:= ExStyle or WS_EX_APPWINDOW;
  WndParent:= GetDesktopWindow;
 end;
end;
But there is a problem. When i right click (mouse) form2 on taskbar i cant see original popup
Close , Minimize , Maximize etc..

How can i see this menu ?

Regards;
  Mit Zitat antworten Zitat
Benutzerbild von Jelly
Jelly

Registriert seit: 11. Apr 2003
Ort: Moestroff (Luxemburg)
3.741 Beiträge
 
Delphi 2007 Professional
 
#2

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 09:47
If you use a recent version of Delphi (2006 or 2007), you have a component called TTrayIcon.
If not, use the CoolTrayIcon component.
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#3

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 09:56
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".
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Benutzerbild von Jelly
Jelly

Registriert seit: 11. Apr 2003
Ort: Moestroff (Luxemburg)
3.741 Beiträge
 
Delphi 2007 Professional
 
#4

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 10:09
My fault, sorry.

For me, the code is working
  Mit Zitat antworten Zitat
trolojik2

Registriert seit: 27. Jul 2007
14 Beiträge
 
#5

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 15:10
Zitat von Luckie:
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".
Yes my problem is that. missing system menu items on the taskbar button.

Regards
  Mit Zitat antworten Zitat
Prototypjack

Registriert seit: 2. Feb 2003
611 Beiträge
 
Delphi 2009 Professional
 
#6

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 17:02
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
Max
„If you have any great suggestions, feel free to mail me, and I'll probably feel free to ignore you.“ . Linus Torvalds
  Mit Zitat antworten Zitat
Benutzerbild von Die Muhkuh
Die Muhkuh

Registriert seit: 21. Aug 2003
7.332 Beiträge
 
Delphi 2009 Professional
 
#7

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 17:07
Same to me: Code is working right.
  Mit Zitat antworten Zitat
trolojik2

Registriert seit: 27. Jul 2007
14 Beiträge
 
#8

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 17:20
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
  Mit Zitat antworten Zitat
Benutzerbild von Die Muhkuh
Die Muhkuh

Registriert seit: 21. Aug 2003
7.332 Beiträge
 
Delphi 2009 Professional
 
#9

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 17:23
ok. You have a mainmenu on Form2 and you want that mainmenu on the taskbar?
  Mit Zitat antworten Zitat
trolojik2

Registriert seit: 27. Jul 2007
14 Beiträge
 
#10

Re: TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 17:28
Zitat von Luckie:
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".
No i dont have a mainmenu. The original menu (system menu) i cant see

Like luckie's said

I have only this problem
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 2  1 2   

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:23 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz