ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 2025 feature!
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Activation in the editor
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
WinOptimize (Function)
In french: FenOptimise
Changes the mode used to create and draw windows. All windows opened after calling this function will use the new mode.
This function makes it easier to open and draw windows containing a large number of controls.
Example
WinOptimize(woWithoutHandle)
Open(WIN_Home)
Syntax
<Result> = WinOptimize(<Mode>)
<Result>: Integer constant
Old mode used by the windows:
woDirect2DWindows use Direct 2D at runtime.
This mode is not available in this version..
woWithHandleWindows use handles at runtime.
woWithoutHandleWindows do not use handles at runtime.
<Mode>: Integer
New mode used to create and draw windows:
woDirect2DOptimized mode: Windows use Direct 2D at runtime. In this case, the graphics card draws the window and its controls.
This mode is not available in this version..
woWithHandle Default mode: Windows use handles at runtime. In this mode, the processor is responsible for displaying and drawing windows and their controls. There can be no more than 1000 handles simultaneously.
woWithoutHandleOptimized mode: In this mode, the processor is responsible for displaying the windows and their controls. A single handle is created for the window and its controls. This constant eliminates the limitation related to the number of handles.
Caution: This mode is not compatible with certain WLanguage functions, such as Handle.
Remarks

Activation in the editor

You can also activate these optimization options in the window editor. Simply open the "Modifier" pane, expand the "Details" group, select "Optimizations" and choose the desired option.
Business / UI classification: UI Code
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help