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

78 Visitors Online


 
...create a sizable and none border style form?
Autor: Gurkan ASLAN
[ Print tip ]  

Tip Rating (19):  
     


{
  With this code you can create none border style (BorderStyle = bsNone)
  but sizeable windows (forms)
  First you must set BorderStyle := bsNone of your Form in Object Browser.
  There is your small but forced code;
}

type
  
TForm1 = class(TForm)
  private
    
{ Private declarations }
  
public
    
{ Public declarations }
    
procedure CreateParams(var Params: TCreateParams); override;
  end;

var
  
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.CreateParams(var Params: TCreateParams);
begin
  inherited 
CreateParams(Params);
  Params.Style := (Params.Style or WS_THICKFRAME);
end;



 

Rate this tip:

poor
very good


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