{LINKED}
Syntax
{LINKED=Dialog_Title}
|
Argument |
Type |
Description |
|
Dialog_Title |
C |
The name of the dialog box to link to. |
Description
The {LINKED} command creates external dependencies between separate xdialogs. The linked command is not directional. Which xdialog has the linked command makes no difference. The only requirement is that the linked-to xdialog exist before you create the linked-from xdialog.
Supported By
Alpha Five Version 6 and Above
Limitations
Desktop applications only
Examples
Click on a button. Not only does the variable refresh for the main xdialog, but for the xdialogs it is linked to. Modify the value of a control that shares a variable, the control gets refreshed in any linked dialogs.
|
' DEMO OF LINKED COMMAND ui_modeless_dlg_box("foo","[x] <foo>",<<%code% if a_dlg_button = "" then a_dlg_button = "" ui_modeless_dlg_close("foo") else if a_dlg_button = "foo" then a_dlg_button = "" x = "foo" end if %code%) ui_modeless_dlg_box("bar","{linked=foo} [x] <bar>",<<%code% if a_dlg_button = "" then a_dlg_button = "" ui_modeless_dlg_close("foo") else if a_dlg_button = "bar" then a_dlg_button = "" x = "bar" end if %code%) |
See Also