IRibbon.Resources

Fore Syntax

Resources: IResourceObject;

Fore.NET Syntax

Resources: Prognoz.Platform.Interop.ForeIO.IResourceObject;

Description

The Resources property determines repository object - the Resources, the images of which should be used in the control elements of the ribbon.

Comments

When configuring the ribbon, any images can be connected with the particular control elements. Different tags correspond to these images in the XML string structure:

//...

<ELEMENT>

<ELEMENT_NAME>Button_Palette</ELEMENT_NAME>

<ID>

<NAME>IDC_BUTTON1069</NAME>

<VALUE>1069</VALUE>

</ID>

<INDEX_SMALL>0</INDEX_SMALL>

<DEFAULT_COMMAND>FALSE</DEFAULT_COMMAND>

<ICONS_IN_ROW>0</ICONS_IN_ROW>

<SIZE_ICON>16, 16</SIZE_ICON>

<IMAGE>

<NAME>IDR_BCGP_IMAGE_PALETTE_0</NAME>

</IMAGE>

</ELEMENT>

//...

<CATEGORY>

<ELEMENT_NAME>Category</ELEMENT_NAME>

<NAME>Main</NAME>

<IMAGE_SMALL>

<NAME>IDR_BCGP_IMAGE_CATEGORY_SMALL_0</NAME>

</IMAGE_SMALL>

<IMAGE_LARGE>

<NAME>IDR_BCGP_IMAGE_CATEGORY_LARGE_0</NAME>

</IMAGE_LARGE>

//...

</CATEGORY>

To make the images available when using the Ribbon component on user forms, do the following:

When the XML string of the ribbon is loaded, the search is performed and found images are displayed for the corresponding control elements.

Example

An example of property use is given in the example for the LoadFromXML method.

See also:

IRibbon