Page 1 of 1
why RenderedStringWidgetComponent not draw the widget?
Posted: Thu Apr 22, 2010 03:34
by helloworld
i try to add a widget via the RenderedString.but the widget seems not to show. is there anything wrong with me?
Re: why RenderedStringWidgetComponent not draw the widget?
Posted: Thu Apr 22, 2010 08:49
by CrazyEddie
You didn't read
this post, did you?
CE
Re: why RenderedStringWidgetComponent not draw the widget?
Posted: Thu Apr 22, 2010 09:21
by helloworld
i am sorry
my problem is that i want to add a button to a MyListItem in Sample_Demo7 but the button is not seem .
the code i added is below
Code: Select all
Window* pButton = winMgr.createWindow("TaharezLook/Button", "Mybutton");
pButton->setText("Mybutton");
mclbox->setItem(new MyListItem("window = 'Mybutton'"), 1, 4);
i see that the widget is not drawn in RenderedStringWidgetComponent.cpp.so do i take a wrong usage?
Re: why RenderedStringWidgetComponent not draw the widget?
Posted: Thu Apr 22, 2010 09:25
by helloworld
sorry again
my code is
Code: Select all
Window* pButton = winMgr.createWindow("TaharezLook/Button", "Mybutton");
pButton->setText("Mybutton");
mclbox->setItem(new MyListItem("[window = 'Mybutton']"), 1, 4);
Re: why RenderedStringWidgetComponent not draw the widget?
Posted: Fri Apr 23, 2010 08:31
by CrazyEddie
Ok it is bad news, I'm afraid as far as doing this for the ListboxItem based content, which does not offer enough support to successfully manipulate the windows (for example, if an item were to scroll off of the top of the list and be completely clipped, the manipulated windows would remain visible at the top of the list).
You can try it anyway, if you like, and the missing step is that the windows to be controlled via the tag (i.e. "MyButton") needs to be pre-added to the listbox via addChildWindow.
CE.