why RenderedStringWidgetComponent not draw the widget?
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 8
- Joined: Thu Apr 22, 2010 03:28
why RenderedStringWidgetComponent not draw the widget?
i try to add a widget via the RenderedString.but the widget seems not to show. is there anything wrong with me?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
-
- Just popping in
- Posts: 8
- Joined: Thu Apr 22, 2010 03:28
Re: why RenderedStringWidgetComponent not draw the widget?
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
i see that the widget is not drawn in RenderedStringWidgetComponent.cpp.so do i take a wrong usage?
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?
-
- Just popping in
- Posts: 8
- Joined: Thu Apr 22, 2010 03:28
Re: why RenderedStringWidgetComponent not draw the widget?
sorry again
my code is
my code is
Code: Select all
Window* pButton = winMgr.createWindow("TaharezLook/Button", "Mybutton");
pButton->setText("Mybutton");
mclbox->setItem(new MyListItem("[window = 'Mybutton']"), 1, 4);
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: why RenderedStringWidgetComponent not draw the widget?
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.
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 7 guests