function NewButton( AParent: PControl; const Caption: KOLString ): PControl;
Creates button on given parent control or form. Please note, that in Windows, buttons can not change its Font color and to be Transparent .
Following methods, properies and events are (especially) useful with a button:
property OnClick: TOnEvent; |
|
---|---|
function SetButtonIcon( aIcon: HIcon ): PControl; |
|
function SetButtonBitmap( aBmp: HBitmap ): PControl; |
|
function LikeSpeedButton: PControl; |
|
procedure Click; |
|
property Caption: KOLString; |
|
property DefaultBtn: Boolean; |
|
property CancelBtn: Boolean; |
|
property TextAlign: TTextAlign; |
|
property VerticalAlign: TVerticalAlign; |