I know what he is asking and I have the simplest answer.
There is no clear button for the main window.
You can change the content or open and close more windows within it but if you want the main window to change you have to destroy it and create a new one. (And I would very much like to know how thats done)
I'm currently working on an all
Graphical
User
Interface
GUI game.
I'm not going to go into what the game is about but I will say that I'm working hard on learning the code and using irrlicht itself to teach me c++.
now the reason I don't go read one of the million tutorials (which I do at great length in fact I've been staring at the code for 5 hours now and skimming c++ tutorials) is because they bore me to death and like you I learn better by example although I wouldn't recommend following me down this trail. I'm a fast learner thats all I pick up on it piece by piece.
I'll be honest I don't much like coding because of the complexity.
But I very much want to get my models and my ideas into a working game and have to do it alone.
In the 5 hours I spent today (so far) I already have basic understanding how the code works and I havent even gotten into object oriented programming yet in C++ tutorials. which is basicly what I'm learning today (sorta..I think lol) but the point is I knew almost nothing and probably don't know much more then you right now Aethaecyn. But I can create some very basic gui commands.
I learned some of the commands by looking at the gui interface example and the meshviewer the 2 combined have all the basic gui commands. (most anyways)
It only gets complex when you want to make things happen my best advice because I'm lost in the same dark hole you are is to read alot of c++ tutorials and learn how this all works.
the main problem with learning C++ from Irrlicht code is that everything you make runs through Irrlicht and most of what you can do is just calling up commands from the core of the engine. it gets pretty confusing when you just want to add a window or box here and you need to understand.
basicly gui in Irrlicht works like this: (this is very basic understanding correct me if you like)
GUIEnvironment is all the GUI in the main window basicly it is the main window at least for handling gui
GUIElement is some form of grouping GUI elements (or something not really sure about this one)
Everything else falls under these like:
GUIListbox
GUICombobox
Ect..
Because they are only basic GUI elements based on "windows style" programs (I guess) drop down menu's windows with tabs all the good stuff.
you can also make images into buttons and the whole works by using basic C++ loops and commands.
try the 2-3 gui examples for the easy stuff and try to understand how it works and read more C++ tutorials.
The ONLY problem with crossing the vally is that you must first build the bridge.
If it's example you want then get some C++ source code. then maybe the tutorials won't bore you to death. (and one of these days I'll take my own advice)
I've put a link to the source I've been working on today maybe it will help.
It might seem very raw but might help you understand the basic functions better. It's just main.cpp for the GUI example program all hacked up and customized.
If you can figaure out how to get it into your compiler and compile and run it then I'd say you have a very basic understanding of C++ and are off to a good start.
don't ask me about this if it works for you then great otherwise go take a C++ hello world tutorial.
I even took the time to go into detail using comments in the code.
anyone should be able to understand this after taking a C++ hello world tutorial that goes for getting it into your compiler aswell.
and if you have read the hello world tutorial for C++ (not Irrlicht's hello world tutorial) and spent at least 5 hours looking and rereading my examples and still don't understand anything at all then yes you ARE too dumb to understand this..lol..or maybe you are very new and need to not mess with things like this without learning the basics.
I spent 3 hours writing this post and refining the code and comments I consider this noob proof and if you have questions about it you can ask but I probably won't answer. unless it's important and I get around to it. I'm basicly showing you everything I know right now so questions would be pointless.
phew out of breath and with that here is a link to the source.
Midnight's Irrlicht GUI Tutorial.rar