Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Rebol View, function behaving differently when called diectly or from other funtion

From: anton::wilddsl::net::au at: 26-Aug-2006 14:40

Hi Yvan, I forgot to explain why "VIEW in a VIEW" doesn't work. It's not simple to explain, however... Consider the following code: view layout [button "open" [print 1 view layout [field] print 2]] This is what happens: 1) VIEW - opens the main window - DO-EVENTS (WAITs for events) 2) User presses "open" button - print 1 - VIEW - opens window-2 - VIEW does not call DO-EVENTS again, because there was an existing window. - VIEW returns immediately - print 2 3) Events are still being WAITed on. This will stop only when the window is closed. This "VIEW inside a VIEW" confuses lots of beginners. Maybe we can redesign it? Regards, Anton.