Lets suppose some widget are constructed dynamically and there is need to
define each one by specific string ID(not generated by Wt id). In future,
objects could be defined by this string ID.
So, for WCheckBox we have:
WCheckBox *cb = new WCheckBox("ID1",this);
cb->label()->hide();
cb->label()->text(); // get string ID
For other widget like WLineEdit Inheritance from WFormWidget theres no label
or other facility to do string ID:
WLineEdit *le = new WLineEdit(this);
le->label()->setText(); // compile error, in spite of WLineEdit Inheritanced
from WFormWidget witch has label() method
Sure, it is possible to use vector<string>for keeping string array and
vector <WWidget> for widget pointer.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest