Resources: IResourceObject;
Resources: Prognoz.Platform.Interop.ForeIO.IResourceObject;
The Resources property determines repository object - the Resources, the images of which should be used in the control elements of the ribbon.
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:
<IMAGE>
<IMAGE_SCENIC>
<IMAGE_SMALL>
<IMAGE_LARGE>
//...
<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:
To create the object in the repository Resources and set it as a value of this property.
To create in the resource an image, the identifier of which coincides with the <Name> element of the <Image*> tag from the XML string of the ribbon.
When the XML string of the ribbon is loaded, the search is performed and found images are displayed for the corresponding control elements.
An example of property use is given in the example for the LoadFromXML method.
See also: