Hello everyone, I want to implement a combobox widget that display the full name of the item and returns as value the item code. Similar to this:
example HTML: <SELECT NAME="marital_status"> <OPTION SELECTED VALUE="">Select...</OPTION> <OPTION VALUE="SNG">Single</OPTION> <OPTION VALUE="MRD">Married</OPTION> </SELECT> I'm trying to use a class that derives from WAbstractListModel, and reimplemented data() and rowCount() using WStringListModel as an example. I used the following to map the typedef std::pair< Wt::WString, Wt::WString > PairWString; typedef std::map<int, PairWString > MapItemCode; Now I don't know how to declare the signal "activated" to retrieve the selected value? Or am I taking the wrong approach altogether? Cheers George. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
