I would like to style the WLabel and Wt::Ext::LineEdit using the class
attribute. I am automatically generating my forms, and would like to do some
syntax highlighting on the forms. So for example - if I have a date field, the
label and background colour / foreground text should be in one colour, and if I
have a numeric field it should be in a different colour.

When generating a table for example I can use the setStyleClass of the table row
to get alternating colours. I want to similarly apply a class to the WLabel.

The documentation for WLabel says :

"This widget does not provide styling, and can be styled using inline or
external CSS as appropriate. A label's text may be styled via a nested <span>
element, and it's image may be styled via a nested <img> element. "

Is there any work around where I can apply a different class to Labels,
LineEdits dynamically while generating the code?

Many Thanks for your help in advance,
Kind Regards,
Neil

For those interested:

You can have a look at the partial application I'm developing here:

http://173.230.133.34:8080

It has been developed entirely out of create table statements - including the
build makefile.
Project page: http://sourceforge.net/projects/proghelp


------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to