PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
DisplayEnabled (Property)
In french: AffichageActif
The DisplayEnabled property is used to:
  • find out whether the display of a control or window is enabled or not. If the display is enabled, the content of the control is refreshed on a regular basis.
  • enable (or not) the display of a control or window.
This property enables you to optimize the processes in which one or more controls must be used. The control or window is displayed once it has been processed.
Example
// Add 1000 elements to a Table control
// The Table control is not redisplayed after each addition
TABLE_TABLE1.DisplayEnabled = False
// Add
I is int
FOR I = 1 TO 1000
TableAdd(TABLE_TABLE1, MyCalculationRowContent(I))
END
// Enable the display of the Table control
TABLE_TABLE1.DisplayEnabled = True
Syntax

Finding out the current display mode Hide the details

<Result> = <Element used>.DisplayEnabled
<Result>: Boolean
  • True if elements are set to be displayed,
  • False otherwise.
<Element used>: Control name or window name
Name of control or window to use.

Modifying the current display mode Hide the details

<Element used>.DisplayEnabled = <Display mode>
<Element used>: Control or window name
Name of control or window to use.
<Display mode>: Boolean
  • True for elements to be displayed,
  • False for elements not to be displayed.
Remarks
  • The DisplayEnabled property must never remain set to False. This value must be temporary (when filling a Table control for example). Otherwise, unexpected effects may occur (100% of the processor is used by Windows to display the control even though the control is not to be displayed).
  • The DisplayEnabled property cannot be used on container controls such as Internal Window controls.
  • Use example: Table control:
    When the DisplayEnabled property is set to False, values are not calculated or displayed in the Table control. For example, this property allows users to add or delete elements without refreshing or re-calculating the Table control. Adding elements is faster and display effects are ignored, since neither the display nor the automatic calculation processes are executed. Of course, the DisplayEnabled property must be set back to True once these operations are completed.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment