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:

  1. AUTOSIZE may be used in SETPROP or GETPROP statements of a TOOLBUTTON object.

  2. {value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:

  3.  

    Value

    Keyword

    Toolbar resizing is ...

    0

    $OFF

    disabled.

    1

    $ON

    enabled.

     

  4. 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

 



PL/B Language Reference AUTOSIZE (STATUSPANEL) Property AUTOVERB Property