Einzelnen Beitrag anzeigen

trolojik2

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

TForm2.Create(application) taskbar problem

  Alt 28. Jul 2007, 00: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