RAD Studio VCL Reference
|
Specifies which icons appear on the title bar of the form.
property BorderIcons: TBorderIcons;
__property TBorderIcons BorderIcons;
Use BorderIcons to get or set the icons that appear on the title bar of the form. BorderIcons can include any of the following TBorderIcons values:
Value |
Meaning |
biSystemMenu |
The form has a Control menu (also known as a System menu). |
biMinimize |
The form has a Minimize button |
biMaximize |
The form has a Maximize button |
biHelp |
If BorderStyle is bsDialog or biMinimize and biMaximize are excluded, a question mark appears in the form's title bar and when clicked, the cursor changes to crHelp; otherwise,no question mark appears. |
C++ Examples:
/* The following code removes a form’s Maximize button when the user clicks a button: */ void __fastcall TForm1::Button1Click(TObject *Sender) { TBorderIcons tempBI = BorderIcons; tempBI >> biMaximize; BorderIcons = tempBI; }
Delphi Examples:
{ The following code removes a form’s Maximize button when the user clicks a button: } procedure TForm1.Button1Click(Sender: TObject); begin BorderIcons := BorderIcons - [biMaximize]; end;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|