hi, all I have made a class Text derived WText (in the attachments) , all is ok but during a specific contruction a mistake happened,like following:
code 1: // this is ok and txt can show rightly.
WContainerWidget *cw = new WContainerWidget(this);
Text *txt = new Text("aKey");
cw->addWidget(txt);
code 2: // this is wrong, txt can not show
WContainerWidget *cw = new WContainerWidget(this);
Text *txt = new Text("aKey", cw);
BTW: as this way, class Label : public WLabel and class PushButton : public
WPushButton are all ok. thanks for your help.
Regards
Zhimin
Text.C
Description: Binary data
Text.h
Description: Binary data
------------------------------------------------------------------------------ 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
