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

[REBOL] Re: How to pop a window to the front with Rebol/View

From: rebol:optushome:au at: 27-Apr-2002 9:05

----- Original Message ----- From: "Anton" <[anton--lexicon--net]> To: <[rebol-list--rebol--com]> Sent: Saturday, April 27, 2002 5:58 AM Subject: [REBOL] How to pop a window to the front with Rebol/View
> Hi, I am looking for a way to activate and pop > a window to the front with rebol/view. > > Using 'launch is not ideal because it won't work > if the program that wants to launch has already > itself been launched (as from the Desktop). > > I could use View/Pro features to launch another > rebol process, but I would rather not: > > call "\path\to\rebol.exe script-name.r" > > As described in rebol/Zine Volume 1 Issue 5, > you can do this in IOS: > > lay/changes: 'activate > show lay > > Maybe there is a similar trick in Rebol/View? > > Anton.
Hi Anton, Sorry for being misleading on that, it should also work in View. RIM.r uses it. However it is not guaranteed to pop window to the front, it may just make it flash on the taskbar. (e.g Win98, Win2000 and WinXp behave differently from each other) You might use a pattern similar to this. view-lay: does [view/new lay] ;and then when required to pop up again.. either viewed? lay [lay/changes: 'activate show lay][view-lay] ; --- Not sure if answer you question or not... Cheers, Allen K