Kylix
Tips

NEW TIPS
Database (135)
Files (612)
Forms (606)
Graphic (536)
IDE (456)
Indy (433)
Internet / LAN (590)
IntraWeb (443)
Kylix (447)
Math (561)
Misc (591)
Multimedia (496)
Objects/
ActiveX (503)

OpenTools API (438)
Printing (459)
Strings (583)
System (721)
VCL (586)

Search Tip
Top15
Add new Tip

Forum

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

Tip Rating (2):  
     



{
  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 © Torry's Delphi Pages Torry's Delphi Pages Maintained by Simon Grossenbacher Notes? Comments? Feel free to send... Copyright © 1996-2001