Scalabium Software

 

SMExport advertising

Knowledge for your independence.
 

 
Home Delphi and C++Builder tips


#36:How can I create a non-rectangular control?

If you want to create a non-rectangular control or form, you can create a some region and set this region to your wished window control.

For example, write in OnYourFormCreate event:
SetWindowRgn(Edit1.Handle, CreateRoundRectRgn(2, 2, Edit1.Width - 2, Edit1.Height - 2, 15, 15), True);
This make the oval edit control.

Also view help for CreateRectRegn, CreateRectRgnIndirect API's functions.

You can set a region to any window control (to change a form shape, edit shape etc) - use a YourControl.Handle instead Edit1.Handle in the example.

See also
 
Clarion to Text converter
Protected Storage Viewer
Paradox to MS Access converter
ABA Document Convert
Viewer for TNEF-files (winmail.dat)
DBLoad
SMImport suite
Fast Document Viewer
DBExport tools
Viewer for MS Outlook Messages
 
 
Contact to webmaster

 

Borland Software CodeGear Embarcadero Technologies Scalabium Delphi tips

Copyrightc 1998-2012, Scalabium Software. All rights reserved.
webmaster@scalabium.com

October 28, 1999

SMExport advertising