Member variable XbpToolBar():imageWidth Foundation

Specifies the width of the images displayed in the buttons defined in a XbpToolBar object.

Attribute: EXPORTED
Data type: Numeric (0)

The instance variable :imageWidth contains a numeric value that specifies the width of the images displayed by buttons displayed by the XbpToolBar object. If this instance variable is left at its default value (0), images are assigned with their real width when tool bar buttons are added using method :addItem().

To prevent the buttons defined in an XbpToolBar instance from becoming being resized when images of different dimensions are used, an application may assign a numeric value to the :imageWidth instance variable. This causes all images used within the XbpToolBar object to be adjusted to the same width. To adjust the height to be used when displaying images, an application can use the :imageHeight instance variable.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.