CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

An Image different for each node

by l.restif » 22 Apr 2013 10:25

Hi,
how can I do to put an image different for each node?

Best regards,

Ludovic
l.restif
 
Posts: 8
Joined: 04 Apr 2013 15:24

by Jorge Sousa » 22 Apr 2013 15:27

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 22 Apr 2013 16:17

Hi

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

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by l.restif » 22 Apr 2013 16:24

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.
l.restif
 
Posts: 8
Joined: 04 Apr 2013 15:24


Return to JQTreeView

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.