Help with coding technique for multiple windows
Posted: Mon Oct 23, 2006 4:00 am
I have some questions about coding techniques when using multiple windows.
Questions:
1)
Repeat
event.l=WaitWindowEvent(10)
Until event=#PB_Event_CloseWindow
Does this code captures all window events or it only catches events on whaetever file the window was declared?
Same question as above but for gadgets.
in other words, if I have many windows with many gadgets, do all event code has to be in one .pb file?
What is the best coding technique to create many windows. Is it better to create a procedure for every window?
Any help will be appreciated.
P.S: Sometime on my december vacation I will translate the Purebasic help file to spanish (if there is no translation yet).
Questions:
1)
Repeat
event.l=WaitWindowEvent(10)
Until event=#PB_Event_CloseWindow
Does this code captures all window events or it only catches events on whaetever file the window was declared?
Same question as above but for gadgets.
in other words, if I have many windows with many gadgets, do all event code has to be in one .pb file?
What is the best coding technique to create many windows. Is it better to create a procedure for every window?
Any help will be appreciated.
P.S: Sometime on my december vacation I will translate the Purebasic help file to spanish (if there is no translation yet).