OPTION treeview - v14


CONTROL 300 - Treeview


 

type:                      300

 

parent:                  panel (Row Column)

 

TAB file entry:    opt,x,y,w,h,f,b,300,'text':;

Where text is a dat file i.e. tree.dat the format of which is as follows:
Node id , Parent node id , Text , Action, Menu, Icon, Drag & Drop, UID

the comma character is the separator.
Where:
Node id
– an identifier for the node
Parent id
– the identifier of the node representing the parent of the node
Text
– the text to display on the right of the node icon
Action
– an Eagle command to be executed when the node is selected (only for leaves and not folders)
Menu
- is the pathname of the popup menu representing the context menu for the node or macro to run when a context click is initiated.
Icon
- is the user defined icon for the node
D&D
- is the Eagle command to execute when a node is dragged and dropped on the Eagle graphic window
UID
- is the Unique Identifier for the node

 

values returned:

 When a node is pressed with a single or double click, the polling loop returns the following values :

WT =  type of the control (a panel);

ST =  the label (with extra info, see the variable TREEVIEW_EXTRAINFO_SEPARATOR)

   associated to the selected leaf node or the user definable node id UID if  the

   variable TREEVIEW_ST_AS_UID is set to 'yes';

OS =  the full path from the root;

MN =  the panel number;

BN =   the button number;

LN =   the node ID;

RN =   0 if no children, 1 otherwise.

Note

Detailed description, customization and examples for the Treeview control are located in the relevant section of the UI Framework guide.  This guide provides a comprehensive guide on all issues relating to the GUI and the related commands.

See also

click, polling,panel, options, UI Framework, theme, freeze, unfreeze