Hey Dushan,
There are many add*() methods of Wt classes which returns void (except
WMenuItem* WMenu::addItem() because there is WMenuItem class
and it can be useful to invoke some of WMenuItem's method, e.g.,
setPathCompoment() when you add an item to menu).
With the current API you can easily write function to fill the combo box
with items.
Dmitriy
2010/6/14 Dushan Savich <[email protected]>
> Hey all,
>
> I have a nice idea.
> Sometimes it would be just easier to add new items to the WComboBox
> using something like this :
>
> comboBox->addItems("Item One;Item Two;Item Three");
>
> Cheers!
> Dushan
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest