How to pop a window to the front with Rebol/View
[1/4] from: anton::lexicon::net at: 27-Apr-2002 5:58
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.
[2/4] 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.
<<quoted lines omitted: 10>>> 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
[3/4] from: james:mustard at: 27-Apr-2002 17:09
Hi there, I've found the easiest way to guarentee corss-platform window behaviour is to create a 'Desktop' window and have all other windows as pane members. This way you can easily implement parent-child / locking relationships between windows. A rather basic example of this behaviour can be seen with the Minimalist desktop I created a while back: screenshot: http://www.mustard.co.nz/rebol/minimalist.jpg code: http://www.mustard.co.nz/rebol/window.r Regards, James.
[4/4] from: anton:lexicon at: 28-Apr-2002 18:18
Thanks Allen, Of course I tried lay/changes: 'activate in View anyway, and noticed as you said that it only flashes in the taskbar (if it's not the primary task ? win2k). Thanks James,
> screenshot: http://www.mustard.co.nz/rebol/minimalist.jpg > code: http://www.mustard.co.nz/rebol/window.r
It's a nice idea, but not suitable if you want to use a mix of rebol and native applications. I might use a combination of these different techniques, depending on what's available. Or another idea I've been toying with for a while is to have a little rebol applet-launching server running in the background, listening on a port for instructions. Of course it's more work, but you get more out of it too. Probably rugby can help me there, actually. Anton.
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted