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
The Style property is used to retrieve and assign the entire style of a control (including the overrides).
Example
// Copy styles between 2 edit controls
EDT_EnterPrice.Style = EDT_Example.Style
Syntax

Retrieving the entire style of a control Hide the details

<Result> = <Control used>.Style
<Result>: Buffer
Buffer containing the entire style of the control. This buffer can for example:
  • be used to copy the style from a control to another one.
  • be saved in a file or in a memo item in order to restore the style afterwards.
<Control used>: Control name
Name of the control to be used.

Modifying the style of a control Hide the details

<Control used>.Style = <New style>
<Control used>: Control name
Name of the control to be used.
<New style>: Buffer
Buffer containing the new entire style of the control.
Caution:
  • The style used must correspond to the style of a control of the same type. Otherwise, a WLanguage error occurs.
  • If the style uses images, these images must be located in the WDL or accessible on the disk.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment