Property: ActionObjPictureHeight for Bar
- Updated2024-09-12
- 1 minute(s) read
Bar Manager > Properties > Property: ActionObjPictureHeight for Bar
Property: ActionObjPictureHeight for Bar
Specifies the height of the graphics that DIAdem displays on the elements of a bar, in pixels. This way, the property ensures the uniform appearance of the bar.
The specifications ActionObjPictureWidth and ActionObjPictureHeight refer to a screen resolution of 96 DPI. With other screen resolutions, DIAdem either scales the graphic or uses a matching symbol size from the ICO file. For example, if the resolution is 44 DPI, DIAdem scales the graphic by 150% or uses a 24 pixel-sized symbol, if that is available in the ICO file, for 16 pixel-sized specifications.
Object.ActionObjPictureHeight
Object | Bar Object with this property |
Object.ActionObjPictureHeight | LongInteger with read and write access |
The following example generates the new bar MyBar, unless the bar already exists, and specifies the height and width of the graphics that are displayed on the bar:
VBScript | Python |
Dim sgBarId sgBarId = "MyBar" If (not BarManager.Bars.Exists(sgBarId)) Then Call BarManager.Bars.Add(sgBarId) BarManager.Bars(sgBarId).ActionObjPictureWidth = 16 BarManager.Bars(sgBarId).ActionObjPictureHeight = 16 End If
See Also
ActionObjPictureWidth | Object Overview
Examples
Adding User-Defined Functions to the Group Bar | Creating and Saving a Work Session | Custom Toolbars on DIAdem Panels | Customized User Interface | Merge Bar Definitions | User-Defined Evaluations in DIAdem ANALYSIS | User-Defined Menus | Working with the Bar Manager