Page 1 of 1

An Image different for each node

PostPosted: 22 Apr 2013 10:25
by l.restif
Hi,
how can I do to put an image different for each node?

Best regards,

Ludovic

Re: An Image different for each node

PostPosted: 22 Apr 2013 15:27
by Jorge Sousa
Hello l.restif

For now, the only way is setting

IWCGJQTreeView.JQTreeViewOptions.ThemerollerPlugin.PluginActive:= True;

and the several css classes properties:

/// <summary>
/// The class name to use for open nodes (shows the arrow to close).
/// </summary>
property Opened: string index 00 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for closed nodes (shows the arrow to open).
/// </summary>
property Closed: string index 01 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for the actual items.
/// </summary>
property Item: string index 02 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for the hovered item.
/// </summary>
property Item_h: string index 03 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for selected items (UI plugin).
/// </summary>
property Item_a: string index 04 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for the opened items. If set to false the icon
/// is not shown.
/// </summary>
property Item_open: string index 05 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for the opened items. If set to false the icon
/// is not shown.
/// </summary>
property Item_clsd: string index 06 read GetStringValue write SetStringValue stored IsStringStored;

/// <summary>
/// The class name to use for the opened items. If set to false the icon
/// is not shown.
/// </summary>
property Item_leaf: string index 07 read GetStringValue write SetStringValue stored IsStringStored;

Best Regards

cgdevtools

Re: An Image different for each node

PostPosted: 22 Apr 2013 16:17
by Jorge Sousa
Hi

We can do this for each node, easily, for next version

Best Regards

cgdevtools

Re: An Image different for each node

PostPosted: 22 Apr 2013 16:24
by l.restif
In my case the icon doesn't depend only of the state of the item, but it depend too of a type(For sample: water,electric etc...) of the item.