- Sivaprakash BKR
- PowerBuilder
- Friday, 12 August 2022 08:14 AM UTC
Hello,
Using PB 2019 R3 - Theme
Would like to have different colors for command button in a window.
In a window we have around 15 command buttons. Would like to differentiate all command buttons with different colors. Only way is to use Theme. Without themes, I could not find other way to set the background color for command button.
Say Window one got cb_save, cb_retrieve, cb_previous, cb_next, cb_print .... command buttons. Would like to set one color for cb_save, another color for cb_retrieve, another color for cb_previous etc.
The way to achieve the same is to create a custom theme option: I could create color for cb_save like this, in one theme file.
"w_main.cb_save":
{
"drawing":true,
"normal-state":
{
"border-color":"#B3D7F3",
"background-color":"#784C4C",
"text-font":{"color":"#000000"}
},
And I want to have the same color for cb_save in all widows. For this should I need to write the same code for all windows? Is there any other option to set the color?
Happiness Always
BKR Sivaprakash
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.