PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Change Color of Titlebar/Border/BackgroundImage
Change Color of Titlebar/Border/BackgroundImage
Débuté par Rik, 09 déc. 2017 18:06 - 1 réponse
Posté le 09 décembre 2017 - 18:06
Hello all,

Our program is able to run in 5 different configurations: Stand-alone, Cloud etc....

We would like to quickly distinguish between these, by using of one of the following features:
- Change the color in the title bar to blue or green, its white by default.
- Change the color of the border around the window.
- Change the background image, we now use a blue background, to a different image.

I would like to change this for all windows at once, so I do not have to change all the init window codes.

Solutions I already thought about:
- Generating different executables, but this would give too much problems in consistency.
- Changing the skin template with ChangeSkinTemplate(), but I'm a little bit hesitant about using this function.

All ideas are welcome!

Regards,
Rik
Posté le 12 décembre 2017 - 18:50
If your app is in WinDev.
What about using one event to run one procedure everytime you open one window and in that procedure change what you need.

in the project init code use something like this:
Event("Your_procedure","*.",WM_CREATE)

https://doc.windev.com/en-US/…

To define the Standard Windows constants you can use EXTERN

https://doc.windev.com/en-US/…