Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SysButtons - property of object PmForm

Description:
System button selection on the right side of the form viewer.
Syntax:
SysButtons As String
Calling:
oForm.SysButtons = "ok,cancel"
Values:
The values "auto" and "" are entered individually and cannot be merged with others. Other values can be merged (separator is comma) which means that all buttons are displayed.
"auto" (default) - System buttons will be selected automatically depending on where is the for viewed.
- If viewed in independent window than it is similar as "ok,cancel".
- If viewed in the PmWorkspace object or in PmiWFrame graphic item then it is similar as "" (i.e. system buttons are not displayed).
"" - No system buttons are displayed.
"ok" - The following button is displayed: OK. When this button is pressed the system tests the validity of enetered values in the configurator (e.g. if the values are within defined limits - see property Min, Max, etc.). If all values are OK then the viewer closes with value: oSystem.CloseReason = "ok".
"cancel" - The following button is displayed: Cancel. When this button is pressed the system closes the viewer (without validity test) with value: oSystem.CloseReason = "cancel".
"close" - The following button is displayed: Close. When this button is pressed the system closes the viewer (without validity test) with value: oSystem.CloseReason = "close".
"yes" - The following button is displayed: Yes. When this button is pressed the system closes the viewer (without validity test) with value: oSystem.CloseReason = "yes".
"no" - The following button is displayed: No. When this button is pressed the system closes the viewer (without validity test) with value: oSystem.CloseReason = "no".
Note:
Property access for read and write.

It is possible to write into this property only if the PmForm window has not been opened yet.

This property is also functional for Web Panels. It is not functional in InternetExplorer8 and lower.

 
When the viewer is closed the oExtra.onClose action is called. It can be used in roder to detect the close reason by oSystem.CloseReason property.

If the viewer is closed by another non-system button (by Esc key or by close button in window title bar) then it is closed with value: oSystem.CloseReason = "".

See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice