Page 1 of 1

Managing multiple windows, any help/tutorial ?

Posted: Sun Sep 03, 2006 7:31 pm
by newbie
Hello,

I didn't found in the help file how to manage multiple windows, and it's not obvious. If you create two windows, does each one should have it's own event management, or should it be only one event loop which handles both windows ?
Does each window should be created in a separate thread with it's own event loop ?

Does the main window can modify a gadget in the second window, let's say adding an item into a listicon gadget ?

I'm sorry if it's obvious, but after a search in the forum and in the help file, I didn't found a clear explanation of this (I'm sure the forum has a topic explaining that, but searching "multiple windows" gives too much results).

In the newbie FAQ this point is not addressed also.

Posted: Sun Sep 03, 2006 7:33 pm
by Trond
Use one event look and EventWindow().

Posted: Sun Sep 03, 2006 7:42 pm
by newbie
It's sounds already far easier, thanks for the tip ;)
This question should be added to the FAQ IMO :)

Posted: Sun Sep 03, 2006 7:50 pm
by netmaestro
There's a sticky in the announcements section titled PureBasic Survival Guide, which has a good tutorial on event handling for more complex gui's.

Posted: Sun Sep 03, 2006 8:18 pm
by newbie
Then it should be moved to this forum :
Just starting out? Need help? Post your questions and find answers here.
I didn't think that the announcement forum :
Developed or developing a new product in PureBasic? Tell the world about it.
Would provide anything other than new libs or softwares ;)

Posted: Sun Sep 03, 2006 9:07 pm
by srod
It's definitely in the right section as it is not addressing particular coding questions as such, but is more a guide for Purebasic; it's syntax, semantics and so on.

It was for Blueznl to announce to the world when he created the guide rather than post in the coding forum in response to a question etc.

:)

Posted: Sun Sep 03, 2006 11:02 pm
by newbie
Ok then, and thanks for the link, very informative.
Also, adding items to the listicon gadget of the second window, from the first window, works. All I needed :)