How to add TextItem to combobox in the layout

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

zhkingzh
Just popping in
Just popping in
Posts: 1
Joined: Tue Apr 24, 2012 08:54

How to add TextItem to combobox in the layout

Postby zhkingzh » Tue Apr 24, 2012 10:20

I want to write combobox in the layout,how to add TextItem?I have already add combobox in the layout.
If only write in zhe code ,how to get the combobox point,how to add TextItem to it.
Please help me,thanks,thanks,thanks...

layout arleady add these code:

<Window Type="TaharezLook/Combobox" Name="combobox//" >
<Property Name="UnifiedAreaRect" Value="{{0.506896,0},{0.145865,0},{0.756896,0},{0.395865,0}}" />
<Property Name="MaxEditTextLength" Value="1073741823" />
</Window>

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

Re: How to add TextItem to combobox in the layout

Postby CrazyEddie » Mon Apr 30, 2012 08:26

The current combobox (and multi column list, and one of the other list box types) use content that is not CEGUI::Window based - this means you can't add that content via layout files.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests