CreateSelectionContext

From VisionaireWiki
Jump to: navigation, search

createSelectionContext

Connects the selection of two controls.

When connected, the destination control is notified about changes to the selection in the source control.

Lua Syntax:

createSelectionContext(window2, window1 [, bidirectional], {flags=1, 
    select = int})

Arguments

window2

"string" - The source control, the destination control is notified about changes in this control.

window1

"string" - The destination control.

bidirectional

true|false - If given the first control is also notified about changes in second control.

Flags

s/select

Defines the selection context of the source control which will be used. 0 is the default selection context, 1 is the alternative selection context (only supported by specific controls, e.g. objectTree) and 2 is the detail selection context (selected sub-object). Default value is 0.

Return Values

None.