The new skin template will be applied to all windows found in the current application (including the windows found in the WINDEV components used by the application). In a .NET assembly generated by WINDEV, the new skin template will be applied to all windows found in the current assembly and to all windows found in the WINDEV .NET assemblies that are loaded in parallel by the application.

AllComponents

The new skin template will be applied to the windows found in all the WINDEV components used by the application

"<Window Name>"

The new skin template will be applied to the specified window

<New Skin Template>: Character string (with quotes)

Name of skin template to apply (name and path of "*.WDY" file if necessary). If this parameter corresponds to an empty string (""):

the skin template defined in the window editor will be applied by default. Caution: If a skin template was dynamically applied by ChangeSkinTemplate, this dynamic skin template will be kept.

the windows already opened will keep the current skin template.

<WLanguage Procedure>: Optional character string (with quotes)

Versions 22 and laterWLangage procedure ("callback" procedure) called when the skin template is applied to an internal window further to the call to ChangeSourceWindow. This procedure has the following format:

<Destination Internal Window> is a Control variable corresponding to the internal window onto which the skin template is applied.

<Skin Template> is a string corresponding to the name of the skin template used.

New in version 22WLangage procedure ("callback" procedure) called when the skin template is applied to an internal window further to the call to ChangeSourceWindow. This procedure has the following format:

The ".WDY" files corresponding to the skin templates proposed by WINDEV are supplied with WINDEV.

Notes:

When creating a skin template, the ".WDY" file is automatically created.

To generate the ".WDY" file of an existing skin template, open the "<NameOfSkinTemplate>.STY" file in WINDEV and save this file ( ).

Deploying an application

When creating the setup program of your application, the following elements must be added into the list of elements to install:

the ".WDY" file corresponding to the new skin template applied by ChangeSkinTemplate.

the image files used by the new skin template applied by ChangeSkinTemplate.

Caution: The images must have different names in the different skin templates used otherwise these images will not be modified. For the buttons, the image of the button is not affected by the change, only the image of the border is replaced by the image of the skin template.

Dynamically loading skin templates has no effect on the font of the static controls. Indeed, systematically changing the font could trigger unexpected display effects (truncated or overlapping text) because the size of the static controls changes with the font.

If a change of font must be done when a new skin template is applied by programming, use ..Font in addition to ChangeSkinTemplate.

Style of controls

ChangeSkinTemplate dynamically changes the skin template of ALL the controls (controls linked to a project style or dissociated controls). To apply the style of a skin template to some controls only, apply ChangeStyle to the relevant controls.

Versions 20 and laterNote: You also have the ability to copy the style of a control to another one via ..Style.

New in version 20Note: You also have the ability to copy the style of a control to another one via ..Style.

Note: You also have the ability to copy the style of a control to another one via ..Style.