RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TForm.BorderIcons Property

Specifies which icons appear on the title bar of the form.

Pascal
property BorderIcons: TBorderIcons;
C++
__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.  

Note: Certain combinations of the BorderIcons and BorderStyle properties are mutually exclusive. For example, BorderIcons biMax, biMin with BorderStyle of bsDialog are mutually exclusive.
 

Delphi Examples: 

 

{
BorderIcons example
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!