why RenderedStringWidgetComponent not draw the widget?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

helloworld
Just popping in
Just popping in
Posts: 8
Joined: Thu Apr 22, 2010 03:28

why RenderedStringWidgetComponent not draw the widget?

Postby helloworld » Thu Apr 22, 2010 03:34

i try to add a widget via the RenderedString.but the widget seems not to show. is there anything wrong with me?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: why RenderedStringWidgetComponent not draw the widget?

Postby CrazyEddie » Thu Apr 22, 2010 08:49

You didn't read this post, did you?

CE

helloworld
Just popping in
Just popping in
Posts: 8
Joined: Thu Apr 22, 2010 03:28

Re: why RenderedStringWidgetComponent not draw the widget?

Postby helloworld » Thu Apr 22, 2010 09:21

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?

helloworld
Just popping in
Just popping in
Posts: 8
Joined: Thu Apr 22, 2010 03:28

Re: why RenderedStringWidgetComponent not draw the widget?

Postby helloworld » Thu Apr 22, 2010 09:25

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);

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: why RenderedStringWidgetComponent not draw the widget?

Postby CrazyEddie » Fri Apr 23, 2010 08:31

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests