PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WB19] change background color for a tab by program
[WB19] change background color for a tab by program
Débuté par Jbistuer, 25 nov. 2014 14:08 - 3 réponses
Posté le 25 novembre 2014 - 14:08
Hi everybody,
I need to change by code the background color of the tabs in a tab control and I cann not get it.
I've tried with the brushcolor (couleurFond) property with no success due WB tells me that is not allowed.
Please, any idea?

Thanks in advance.
Jordi
Posté le 25 novembre 2014 - 14:23
Hi Jordi

the first thing is to check if it is not allowed, or not allowed in browser code, or not allowed in server code...

And if it's really not allowed anywhere, then you'll have to put an image control (or another control) on top and change ITS color.

Best regards
Posté le 25 novembre 2014 - 15:17
Hi Fabrice,
It's not allowed anywhere.
Actually if I could change the image to show into each tab instead to change the background color, it would be fine as well. But I don't know to do this.

Many thanks for your help.
Salutacions / Regards.
Jordi
Posté le 25 novembre 2014 - 17:13
Hi Jordi,

You can place a cell in the tab and change its brushcolor property.

Regards,
Piet