CreateSelectionContext: Difference between revisions

From VisionaireWiki
Jump to navigation Jump to search
(New page: ==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: <...)
 
m (Bot (Edward's framework))
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:


Lua Syntax:
Lua Syntax:
<pre>createSelectionContext(window2, window1 [, bidirectional])</pre>
<pre>createSelectionContext(window2, window1 [, bidirectional], {flags=1,
    select = int})</pre>
===Arguments===
===Arguments===
====window2====
====window2====
Line 14: Line 15:
:'''true|false''' - If given the first control is also notified about changes in second control.
:'''true|false''' - If given the first control is also notified about changes in second control.
===Flags===
===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===
===Return Values===
None.
None.

Latest revision as of 11:57, 16 August 2009

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.