RibbonSetProperty
(Engine-Level Function)
| Description: | Set a property on a command. A ribbon control will access those properties of a command that it needs to render itself and respond to user interaction. |
| Returns: | Nothing |
Usage: ![]() |
Script Only. |
| Function Groups: | Window |
| Related to: | RibbonCmd | RibbonContextUI | RibbonGalleryItems | RibbonPersistState |
Format: ![]() |
RibbonSetProperty(CommandID, Property, Value); |
| Parameters: |
| CommandID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required. The unique identifier of the command. If set to zero, the property and value are applied to all elements of the ribbon, allowing all to be disabled or enabled with a single call. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Required. An integer from the table that follows. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Value | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Varies according to the property being set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| Comments: |
Note that setting a property on a command affects all controls that use the changed property of the command. Images displayed on buttons and other controls that accept images can be defined by the XML markup or via script code. Images supplied via markup are restricted to Windows .BMP 32-bit ARGB format for supported Windows systems up to and including Windows 7. From Windows 8, .PNG are also supported. Images supplied via script code can be of any image type supported by VTScada and are internally converted to the appropriate type for the ribbon. Image size can be hard to define. The exact image size expected by the ribbon framework depends on the resolution the display device is set to. There are two image sizes used by the ribbon, denoted as Large and Small, as follows:
|
