Expanded Tab Control

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Dark Rain
Posts: 47
Joined: Thu Jul 07, 2005 1:31 am

Expanded Tab Control

Post by Dark Rain »

So, you decided to create a new tab control for your interface:

Image

Wait a minute, those tabs are so high compared to the text inside. We're wasting a lot of space. Ok that's better:

Image

Mmm, too bad we can't add more tabs without having them being cut off or not displayed. Whoops, fixed too :

Image

Here, I added the tab "CCCCCC" and it was too big to display, so it added the "tab scroll bar". Now, with the tab scroll bar, "BBBBBB" can't be displayed either, so it's taken out. You can now use the arrow buttons to scroll through the tabs.

Mmmm I'd like to place my tab control differently, have it display the tabs at the bottom for my chat window interface :

Image

Now.. if only I could reduce the width added on the side of my text in the tabs, I could save a lot of space I need. There you go again I guess ^_^:

Image

I'm sort of looking for a place to host the code, the company website probably isn't a good idea so I'll try to find something but if anyone has a suggestion .. :p

Edit: My next control is going to be tables. I don't know when but I know that I'll do them at some point because our old game client use a lot of them, so I have no choice. If you don't know what I mean by tables, it's something like this : http://java.sun.com/docs/books/tutorial ... table.html
Guest

Post by Guest »

You rule :)
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

Wow, that's really nice. I made a GUI system for myself that loads from XML, and tabs are really essential to it (you can only fit so many controls in a window....). Your examples highlight every problem I was having (the tabs are too tall, too wide, and don't scroll). If you make that code available, I'd be interested in it. Great job.
Dark Rain
Posts: 47
Joined: Thu Jul 07, 2005 1:31 am

Post by Dark Rain »

Well, I'll be able to release it using the company server so that's good. I'm almost done working on a chatbox control now. I know there's a colored listbox and it's nice as a colored list box but IMHO it really doesn't do the job if you want to do chat. You need wrap around etc.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

Lets see your name is Dark Rain... where as I have alias's such as rayn trustin and Ecliptic Fate...

Ok Dark Rain I'm thinking to myself this guy is a lot like me right?

Then I see you have been playing with my gui *cough* Niko's gui (I ment Niko's honest) so anyways...

If you have a look at the shiny buttons and signitures below..

you'll find a link to MSN and a link to Guice...

I highly suggest you to investigate this please and contact me...

Another option would be the #irrlicht channel on irc.freenode.net on IRC

I've been working on a GUI Editor and GUI modification for Irrlicht I'm curious if you would be interested in giving me a hand. 8)
RLam
Posts: 9
Joined: Sat Oct 08, 2005 5:59 am

Post by RLam »

Anyone has tried compile the code at http://people.freenet.de/abusoft ?
I have replaced the

CGUITabControl.h
CGUITabControl.cpp
IGUITabControl.h
CGUISkin.h
CGUISkin.cpp
IGUISkin.h

in Irrlicht SDK 0.12.0 with those in http://people.freenet.de/abusoft and compile the whole engine. But it seems that .exe formed have run time error. Anyone know the reason?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Well, this is my project... ;)
It should work with no problems...

1. did you use the includes from the Irrlicht source (with new/my files)?
2. did you use the new Irrlicht.dll?
3. are the crashes only with new projects or old projects that uses the old Irrlicht.dll and getting the new dll instead?

I really want to know, if this is the cause of my changes with some side effects depending on other system configurations, so I can make a bug fix.

CU
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
RLam
Posts: 9
Joined: Sat Oct 08, 2005 5:59 am

Post by RLam »

I feel very sorry that I have made some mistakes.
I think I have set some path wrongly in the visual studio.net
That's why error happened.However, your project works now and it is pretty good.

By the way, I would like to know if the tap can be placed on the left? but not just on top or bottom.
RLam
Posts: 9
Joined: Sat Oct 08, 2005 5:59 am

Post by RLam »

Recently, I discovered that when I add a button on a tab pane, the OnEvent function can't work properly.(of coz using code at http://people.freenet.de/abusoft)

When I press the button(on tab pane), I seems that it can detect event.EventType == EET_GUI_EVENT but can't detect EGET_BUTTON_CLICKED
(I have ever used back the original code of irrlicht-0.12.0, no such problem occurs)

I know that I always ask some questions which are quite silly but I hope that you may have a look on it and tell me if I am wrong
Post Reply