whats new ¦  programming tips ¦  indy articles ¦  intraweb articles ¦  informations ¦  links ¦  interviews
 misc ¦  tutorials ¦  Add&Win Game

Tips (1541)

Database (90)
Files (137)
Forms (107)
Graphic (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Math (76)
Misc (126)
Multimedia (45)
Objects/
ActiveX (51)

OpenTools API (3)
Printing (35)
Strings (83)
System (266)
VCL (242)

Top15

Tips sort by
component


Search Tip

Add new Tip

Add&Win Game

Advertising

51 Visitors Online


 
...flash the modal window title when user clicks the parent form?
Autor: Kingron
Homepage: http://kingron.myetang.com
[ Print tip ]  

Tip Rating (12):  
     


{
  Under windows 2000/XP,if user open a modal dialog,
  when the user click the modal form's parent form,
  windows can flash the modal form title bar,how to do it by delphi?
  you may create base form,let you modal form inherite from the base form,
  and add under codes to the base form source:
}

type
  
TFrmBase = class(TForm)
  protected
    procedure 
CreateParams(var Para: TCreateParams); override;
    {....}
  
end;

  {.....}

implementation

procedure 
TFrmBase.CreateParams(var Para: TCreateParams);
begin
  inherited
;
  Para.WndParent := GetActiveWindow;
end;

 

Rate this tip:

poor
very good


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners