ShowSelectionTree

Top  Previous  Next

Prototype

 

StrElement:=ShowSelectionTree(strCaption,strSubCaption,intLeft,intTop,intRight,intBottom,strElements,strExpandAll)

 

Description

 

Shows a string tree structure window dialog from which an element can be selected .

 

Parameters

 

strCaption: string corresponding to the window dialog title.

 

strSubCaption: string corresponding to the window dialog subtitle.

 

intLeft: integer value corresponding to the window dialog left coordinate.

 

intTop: integer value corresponding to the window dialog top coordinate.

 

intRight: integer value corresponding to the window dialog right coordinate.

 

intBottom: integer value corresponding to the window dialog bottom coordinate.

 

strElements: integer value corresponding to the string element number to shown.

 

boolExpandAll: boolean value. If it is true expand all visualization.

 

Returned value

 

StrElement: string corresponding to the chosen element.

 

Notes

 

None.

 

Example

{If this tree have to be shown:

ITEM1

SUBITEM1

SUBITEM2

SUBITEM3

ITEM2

SUBITEM1

SUBITEM2

SUBITEM2

 SUBSUBITEM1

 SUBSUBITEM2

SUBITEM3

ITEM3

SUBITEM1

SUBITEM2

}

 

//insert a item for each line if item begin with a space character it become a child of previous item

ShowSelectionTree('Main window','Structure',100,100,500,500,'ITEM1'+chr(13)+' SUBITEM1'+chr(13)+' SUBITEM2'+chr(13)+' SUBITEM3'+chr(13)+'ITEM2'+chr(13)+' SUBITEM1'+chr(13)+' SUBITEM2'+chr(13)+' SUBITEM3'+chr(13)+'  SUBSUBITEM1'+chr(13)+'  SUBSUBITEM2'+chr(13)+' SUBITEM4'+chr(13)+'ITEM3'+chr(13)+' SUBITEM1'+chr(13)+' SUBITEM2',false);