Expand | ||
---|---|---|
| ||
|
Inherits | |
Inherited By | windowreferencefield |
Context | windowinstance |
This control acts like a button and is used to open a new window.
...
Code Block | ||
---|---|---|
| ||
<windowreferencecontrol > <icon > <normal > ... </normal> <empty > ... </empty> <pressed > ... </pressed> </icon> <description > <text > ... </text> OR <textres > ... </textres> OR <control > ... </control> OR <field > ... </field> </description> <class > <recordname > ... </recordname> </class> <noreset /> <nodrag /> <allowdrop /> <closetoggle /> </windowreferencecontrol> |
<windowreferencecontrol > | |
<icon > | The bitmap rendered in the control |
<normal > ... </normal> | The name of the icon resource used when the control is in the normal state and contains a value |
<empty > ... </empty> | The name of the icon resource used when the control contains an empty value |
<pressed > ... </pressed> | The name of the icon resource used when the mouse button is pressed on the control |
</icon> | |
<description > | The source of the description string added to a drag started in this control |
<text > ... </text> OR | A static text string |
<textres > ... </textres> OR | String resource ID |
<control > ... </control> OR | Name of a control with the same parent window that should be used fro description text |
<field > ... </field> | A relative (to the window data source) database identifier pointing to a field that contains the description text |
</description> | |
<class > | The name of the window class used for an opened window instance |
<recordname > ... </recordname> | A relative (to the window data source) database identifier pointing to the data source to assign to the opened window |
</class> | |
<noreset /> | Disable reset by using the middle mouse button |
<nodrag /> | Disable drag from this control |
<allowdrop /> | Allow drop operations to set the shortcut data contained in the control |
<closetoggle /> | Activating the control with the target window instance already in existance will cause the window to close if this is specified |
</windowreferencecontrol> |
Interface
activate
Code Block | ||
---|---|---|
| ||
function activate() |
...
(string)
The name of the windowclass used for the shortcut(string)
The database identifier used for the shortcut
isEmpty
Code Block | ||
---|---|---|
| ||
function isEmpty() |
Returns whether the control contains a link or is empty.
Return values
(boolean)
Whether the control is empty
onValueChanged
Code Block | ||
---|---|---|
| ||
function onValueChanged() |
...