r3treevw

r3treevw

Class

real/gadget/r3treevw.h

Library

r3gad

Description:

Treeview gadget. Interface between the actual tree gadget and tree consisting of simple 'non object' data structures.

See Also

oops/r3gadget.h

Super Class

r3Gadget

R3CLID_GADGET

JavaScript

r3Treeviewgadget

Class Identifier

R3CLID_TREEVIEWGADGET - 281

Methods

HIT, ENUMTREE, HITEX, MAKEVIRTUALROOT,

Attributes

ChildListOffset, Selected, ObjectOffset, Root, HierarchyObjectClid, ChildListAttribute, DropCallbackObject, DropCallbackMethod, OpenOffset, OpenAttribute, KeyHookObject, KeyHookMethod, Balanced, ShowCurrent, DoubleClickMth,

R3TVM_HIT

Method

HIT

Identifier

R3TVM_HIT

Return

R3OBJ*, object hit in the given position

Param 1:

R3INT*

Param 2:

R3INT*, up_down, TRUE if hit in the upper half

JavaScript

rc = obj.HIT(p1, p2, 0);

Description

checks for a hit in a given position

R3TVM_ENUMTREE

Method

ENUMTREE

Identifier

R3TVM_ENUMTREE

Return

void*, return value from the callback

Param 2:

R3INT, callback method

Param 3:

void*, caller specific data

JavaScript

rc = obj.ENUMTREE(0, p2, p3);

Description

Enumerate the tree. The given object/method is called * for each node in the tree. * R3SendMsgA2(callbackobj, callbackmth, treenode, callbackdata);

R3TVM_HITEX

Method

HITEX

Identifier

R3TVM_HITEX

Return

R3OBJ*, object hit in the given position

Param 1:

R3INT*

Param 2:

R3INT*, rel_y, relative y position of the hit 0...100

JavaScript

rc = obj.HITEX(p1, p2, 0);

Description

checks for a hit in a given position

R3TVM_MAKEVIRTUALROOT

Method

MAKEVIRTUALROOT

Identifier

R3TVM_MAKEVIRTUALROOT

JavaScript

obj.MAKEVIRTUALROOT();

Description

Make the currently selected object the virtual root.

ChildListOffset

Attribute

ChildListOffset

Identifier

R3TVA_ChildListOffset

JavaScript type

Integer

C type

R3INT

Description

offset for sub list

Syntax


jsobj.SetChildListOffset(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_ChildListOffset, value, R3TAG_END);

Selected

Attribute

Selected

Identifier

R3TVA_Selected

JavaScript type

String

C type

void*

Description

selected object

Syntax


jsobj.SetSelected(value);
value = jsobj.GetSelected();


void* value = ...;
R3SetAttrs(r3obj, R3TVA_Selected, value, R3TAG_END);
void* value;
R3GetAttrs(r3obj, R3TVA_Selected, &value, R3TAG_END);

ObjectOffset

Attribute

ObjectOffset

Identifier

R3TVA_ObjectOffset

JavaScript type

Integer

C type

R3INT

Description

offset for the object address

Syntax


jsobj.SetObjectOffset(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_ObjectOffset, value, R3TAG_END);

Root

Attribute

Root

Identifier

R3TVA_Root

JavaScript type

Object

C type

R3OBJ*

Description

root object

Syntax


jsobj.SetRoot(value);


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3TVA_Root, value, R3TAG_END);

HierarchyObjectClid

Attribute

HierarchyObjectClid

Identifier

R3TVA_HierarchyObjectClid

JavaScript type

Integer

C type

R3CLID

Description

this object class implements hierarchy

Syntax


jsobj.SetHierarchyObjectClid(value);


R3CLID value = ...;
R3SetAttrs(r3obj, R3TVA_HierarchyObjectClid, value, R3TAG_END);

ChildListAttribute

Attribute

ChildListAttribute

Identifier

R3TVA_ChildListAttribute

JavaScript type

Integer

C type

R3INT

Description

this attribute is used to get the child list

Syntax


jsobj.SetChildListAttribute(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_ChildListAttribute, value, R3TAG_END);

DropCallbackObject

Attribute

DropCallbackObject

Identifier

R3TVA_DropCallbackObject

JavaScript type

Object

C type

R3OBJ*

Description

ask this object permission when dropping (drag&drop)

Syntax


jsobj.SetDropCallbackObject(value);


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3TVA_DropCallbackObject, value, R3TAG_END);

DropCallbackMethod

Attribute

DropCallbackMethod

Identifier

R3TVA_DropCallbackMethod

JavaScript type

Integer

C type

R3INT

Description

this method is used to ask permission for drop

Syntax


jsobj.SetDropCallbackMethod(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_DropCallbackMethod, value, R3TAG_END);

OpenOffset

Attribute

OpenOffset

Identifier

R3TVA_OpenOffset

JavaScript type

Integer

C type

R3INT

Description

offset for storing open/closed state

Syntax


jsobj.SetOpenOffset(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_OpenOffset, value, R3TAG_END);

OpenAttribute

Attribute

OpenAttribute

Identifier

R3TVA_OpenAttribute

JavaScript type

Integer

C type

R3INT

Description

attribute for open/closed state if object

Syntax


jsobj.SetOpenAttribute(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_OpenAttribute, value, R3TAG_END);

KeyHookObject

Attribute

KeyHookObject

Identifier

R3TVA_KeyHookObject

JavaScript type

Object

C type

R3OBJ*

Description

notify this object about key events

Syntax


jsobj.SetKeyHookObject(value);


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3TVA_KeyHookObject, value, R3TAG_END);

KeyHookMethod

Attribute

KeyHookMethod

Identifier

R3TVA_KeyHookMethod

JavaScript type

Integer

C type

R3INT

Description

Syntax


jsobj.SetKeyHookMethod(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_KeyHookMethod, value, R3TAG_END);

Balanced

Attribute

Balanced

Identifier

R3TVA_Balanced

JavaScript type

Boolean

C type

R3BOOL

Description

true for balanced layout

Syntax


jsobj.SetBalanced(value);
value = jsobj.GetBalanced();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3TVA_Balanced, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3TVA_Balanced, &value, R3TAG_END);

ShowCurrent

Attribute

ShowCurrent

Identifier

R3TVA_ShowCurrent

JavaScript type

Boolean

C type

R3BOOL

Description

show curr lev marker

Syntax


jsobj.SetShowCurrent(value);
value = jsobj.GetShowCurrent();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3TVA_ShowCurrent, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3TVA_ShowCurrent, &value, R3TAG_END);

DoubleClickMth

Attribute

DoubleClickMth

Identifier

R3TVA_DoubleClickMth

JavaScript type

Integer

C type

R3INT

Description

method for the double click event

Syntax


jsobj.SetDoubleClickMth(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3TVA_DoubleClickMth, value, R3TAG_END);

R3TVHITPOS_NONE
R3TVHITPOS_OPENBOX
R3TVHITPOS_ICON
R3TVHITPOS_NAME

Tags

Tags

R3TVA_DragDrop
R3TVA_CanRename