Re: Two active windows at the same time


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by WAllison on December 01, 2001 at 12:44:45:

In Reply to: Two active windows at the same time posted by Que Huong on August 28, 2001 at 18:07:25:

: In MS Word 97, when I drag any toolbar (such as drawing toolbar) and drop it on the main client window, it becomes a window with small title bar. It makes me surprised that when I click on a button on the toolbar, the cursor on MS Word window still blink and MS Word window is still active. Vice versus, when I type, the toolbar window is still active. I try to create a window like that in Delphi as follows:

: Declaring an override method in Private section of a form:

: Procedure Tform1.CreateParams(var Params:TcreateParams);override;

: in Implementation section:

: Procedure Tform1.CreateParams(var Params:TcreateParams);
: begin
: inherited CreateParams(Params);
: with Params do
: Exstyle:=WS_Ex_TOOLWINDOW;
: end;

: However, this window becomes de-active when I click on the main form.
: I wish to receive any solution for this problem. Thank you very much.


don't rely on this too much but - i think if your mainform.formstyle is fsMDIForm and the window you want to stay active should be fsMDIChild and Borderstyle := bsToolWindow.


Related Articles and Replies


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]