Managing multiple windows, any help/tutorial ?

Just starting out? Need help? Post your questions and find answers here.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Managing multiple windows, any help/tutorial ?

Post 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.
- Registered PB user -

Using PB 4.00
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Use one event look and EventWindow().
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

It's sounds already far easier, thanks for the tip ;)
This question should be added to the FAQ IMO :)
- Registered PB user -

Using PB 4.00
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
BERESHEIT
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post 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 ;)
- Registered PB user -

Using PB 4.00
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.

:)
I may look like a mule, but I'm not a complete ass.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post 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 :)
- Registered PB user -

Using PB 4.00
Post Reply