PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • State of a group of controls
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
InitialState (Property)
In french: EtatInitial
The InitialState property is used to get the initial state of a control. The initial status corresponds to the status defined during the control description ("UI" tab).
Initial status of edit control ("UI" tab)
Initial status of control (button for example)
Initial status of Table control ("UI" tab)
Initial status of table column ("UI" tab)
To know if a control is visible, use the Visible property.
Versions 23 and later
PHP This property is now available for PHP sites.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
New in version 23
PHP This property is now available for PHP sites.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
PHP This property is now available for PHP sites.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
Example
IF BTN_Close.InitialState = Grayed THEN
BTN_Close.State = Active
END
Syntax
<Initial status> = <Control>.InitialState
<Initial status>: Integer constant
Initial status of the control, defined in the editor.
ActiveThe control is active, visible and in edit
GrayedThe control is grayed
ReadOnlyNoSelectionFor the Table controls only: The control is read-only, no input is allowed.
In this case, the user will not be able to select a table row with the mouse or with the arrows. A row can only be selected through programming with TableSelectPlus. This row will be selected via the selection bar.
DisplayOnly or InactiveThe control is read-only, no input or action is allowed
For the Table controls, the user will be able to select a table row. It can also be selected through programming with TableSelectPlus.
<Control>: Name of control or group of controls
Name of control or group of controls.
Remarks

State of a group of controls

If the InitialState property is used on a group of controls, the state returned is the initial state of the first control in the group.

Limits

  • The InitialState property cannot be used on a menu or menu option.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment