ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
Video Sytle HINT TEXT
https://youtu.be/KNdrv-fQUfg
https://windevdesenvolvimento.blogspot.com/2019/07/dicas-2210-windev-webdev-mobile-24.html
//Video Sytle HINT TEXT
amarildo
21 Jul. 2019

Last update: 05/26/2022

Send a report | Local help