AUTOSIZE (TOOLBUTTON) Property
PLBCMP GUI Only
The AUTOSIZE property specifies that the TOOLBAR object should not assign the standard width to the TOOLBUTTON. Instead, the TOOLBUTTON's width is calculated based on the width of the text plus the image of the TOOLBUTTON. The property uses the following format:
AUTOSIZE[={value}]
Note the following:
AUTOSIZE may be used in SETPROP or GETPROP statements of a TOOLBUTTON object.
{value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
|
Value |
Keyword |
Toolbar resizing is ... |
|
0 |
$OFF |
disabled. |
|
1 |
$ON |
enabled. |
There is no direct relationship between the AUTOSIZE
property for a TOOLBAR object and the AUTOSIZE
property for a TOOLBUTTON object.
AUTOSIZE Property for TOOLBAR:
The original intent for the AUTOSIZE property of a TOOLBAR
was to send a message to the Windows control that would allow the TOOLBAR
object to automatically resize when TOOLBUTTON sizes changed. An evaluation
has found that the Windows operation in this area is not giving the desired
behavior. Setting the AUTOSIZE property for the TOOLBAR
to ON or OFF should have no impact on
the autosizing for a TOOLBUTTON object.
AUTOSIZE Property for TOOLBUTTON:
The AUTOSIZE property for a TOOLBUTTON
controls whether the TOOLBUTTON style allows the toolbutton to resize
dynamically. If the TOOLBUTTON AUTOSIZE
property is set to ON, the TOOLBUTTON
size is changed when TOOLBAR properties are changed. If the TOOLBUTTON
AUTOSIZE property is set to OFF, the
TOOLBUTTON size is set to the default BTNHEIGHT
and BTNWIDTH
property settings for the TOOLBAR object.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |