Tab Controls

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Robomaniac
Just popping in
Just popping in
Posts: 2
Joined: Wed Feb 02, 2005 01:05
Contact:

Tab Controls

Postby Robomaniac » Sat Mar 19, 2005 00:52

I am looking into adding tab controls to the editor more fully, and I've modified the layout editor code to handle adding children of Tab Controls (as it is possible to add children in xml), however, I cannot get the added windows to show up in the tree view and to get them to save to the written xml file. Where should i look for this?

Cheers and Happy St. Patty's Day :pint: :pint: :pint:

Robo

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: Tab Controls

Postby scriptkid » Sat Mar 19, 2005 17:29

Hi,

Sounds cool :-) I wonder, how do you add children in XML then?

I suppose you removed the "tabControl" from
the WindowContext::acceptsWindowAsChild method, in order to allow adding it?

In order to make tabs visible and saved to your files, look at the following:

For the tree view, take a look at the method "ManagerDlg::initLayoutTree", where you will see that "__auto_" windows are being denied. (I suppose that tabs are tagged like that as well, right?).

For saving, take a loot at the method "CCELayoutEditorDoc::saveWindow", which also denies the automatic children.

Good luck!

User avatar
Robomaniac
Just popping in
Just popping in
Posts: 2
Joined: Wed Feb 02, 2005 01:05
Contact:

Re: Tab Controls

Postby Robomaniac » Sat Mar 19, 2005 20:51

Ok, i got it to save the elements, however, i get an error on loading due to the __auto elements being created already... hm... i need some way to get the children of the tab control which aren't prefixed with __auto__ (which is everything that you create as a child of the control)

any suggestions?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: Tab Controls

Postby scriptkid » Mon Mar 28, 2005 15:32

That's the main reason why support was initially dropped. Because it also creates windows itself. It's hard to distinguisg then which windows should be added and which not.

On the other hand, i remember that children of a tab control are not added by creating a new window and setting the parent, but rather through specific methods. So how does it work then for your?

Besided, you say that your own child windows are not prefixed with __auto_, so what goes wrong then? (Maybe the answer is my comment about the specific methods instead of the parent setting?)

Can you post of XML data which fails to load, so i can have a look myself?

Thanks.

User avatar
ZDimitor
Just popping in
Just popping in
Posts: 6
Joined: Tue May 03, 2005 08:19

Re: Tab Controls

Postby ZDimitor » Tue May 03, 2005 08:57

2Robomaniac:

Hi! Nice to meet here well-known face :)

I want to download CELayoutEditor, but CVS is not working for me... Could you help me? (i need a direct link to the
CELayoutEditor Source download).

Can you upload it somewhere or send it me by email?

I'll be very appreciated.

My email zdimitor@pochta.ru

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: Tab Controls

Postby scriptkid » Thu May 05, 2005 16:34

Hi!

thanks for your interest in the sources. Please see this thread:
http://www.cegui.org.uk/modules/newbb/v ... umpost2659

Thanks,
SC.


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 16 guests