CreateSelectionContext

From VisionaireWiki
Revision as of 11:57, 16 August 2009 by Alex (talk | contribs) (Bot (Edward's framework))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.