What's the best way to open multiple modeless windows (_Dialog class) and polls them for events? I tried a couple of different techniques but neither works. My first attempt involved open all windows "modeless" except the last "modal" but this did not work. Events in the last window were captured but events in the first were not. This seems to contradict the comments in the gui.icn source file.

I then tried a technique discussed in the "Graphics Programming in Icon" book (see code stub below). This didn't work either because I'm not passing the correct information to the window's event handler or I'm not calling the correct handler. Any suggestions would be appreciated.

Daniel Boulet

Code stub:

link win_a, win_b, win_c
procedure main()
a := win_a()
b := win_b()
c := win_c()
a.show_modeless()
b.show_modeless()
c.show_modeless()
repeat {
case Active() of {
win_a.win : win_a.dialog_event(Event(win_a.win))
win_b.win : win_b.dialog_event(Event(win_b.win))
win_c.win : win_c.dialog_event(Event(win_c.win))
}
}
end





------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Unicon-group mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to