En  Fa
softprojects.org
Discovering: Tips & Tricks  > Languages  > Delphi Tips  > How to add shadow under delphi forms in XP
 

Articles

 

 

Tips and Tricks

 


 

How to add shadow under delphi forms in XP

Print version  

How to add shadow under delphi forms in XP

Description

This point shows the way of applying shadows to forms. This method works only for Win2000 or later (2K,XP,2003,Vista,...)

Delphi code

type
Tform1 = class(TForm)
private
    { Private declarations }
    Procedure CreateParams(Var Params: TCreateParams); override;
end;

implementation

{$R *.DFM}

procedure Tform1.CreateParams(var Params: TCreateParams);
begin
    inherited;
    if CheckWin32Version(5, 1) then
        Params.WindowClass.Style := Params.WindowClass.style or CS_DROPSHADOW;
end;

Details
      
Writer: Salar Khalilzadeh
Date Sent: 3/16/2008 7:43 AM
Views: 301
Votes: 0
Rating: Not Rated from Not Rated

Your Rating:
bookmark this
 

There is no comment for this topic.

Language:

Copyright © 2008 SoftProjects.org | About | Valid XHTML | CSS