WPushButton - Checked state not visible on GUI in any theme
Added by Gianluca Sorrentino over 8 years ago
Following the previous topic i'm dealing with WPushButton check/uncheck but i cannot make the button "pressed" with all themes (polish, bootstrap and default), it simply remain as "unpressed" on the page.
Moreover i tried the boostrap theme and i've seen that almost any part of the interface of the application was missing decorations at all (for example WDialog doesn't lock che background anymore, even if Wt save the day refusing to accept inputs on "unreachable" elements with "not exposed", great job!).
Are my resources incomplete or shall i do something different to use bootstrap with Wt?
Thanks
Gianluca
Replies (2)
RE: WPushButton - Checked state not visible on GUI in any theme - Added by Gianluca Sorrentino over 8 years ago
Looking better to the documentation Bootstrap should be initialized as below:
setTheme(new WBootstrapTheme());
I was trying with:
setCssTheme("bootstrap");
The PushButton GUI state remains a problem.
Thanks
RE: WPushButton - Checked state not visible on GUI in any theme - Added by Koen Deforche over 8 years ago
Hey,
The following should work with bootstrap theme:
button->setCheckable(true);
button->setChecked()
It's true this isn't supported in the other themes.