Multiple view/new windows
[1/3] from: greggirwin::starband::net at: 1-Sep-2001 20:45
Hi All,
Is there a way to have view/new open multiple modeless windows using the
same source layout? For example:
my-dlg: layout [button "Close" [unview]]
view layout [button "Close" 200 [unview/all]
button "Show Modeless Form" 200 [view/new my-dlg]
]
Each time you click "Show Modeless Form" the same window is activated, which
makes sense, but what if I want to create a layout and let the user view
multiple copies of that layout, simultaneously, containing different data?
copy doesn't seem to be the solution, or I didn't use it correctly.
Thanks in advance!
--Gregg
[2/3] from: al:bri:xtra at: 2-Sep-2001 22:45
Gregg Irwin asked:
> Is there a way to have view/new open multiple modeless windows using the
same source layout?
>> my-dlg: [button "Close" [unview]]
== [button "Close" [unview]]
>> view layout [button "Close" 200 [unview/all]
[ button "Show Modeless Form" 200 [view/new layout copy my-dlg]
[ ]
My two changes are here:
my-dlg: [button "Close" [unview]]
[view/new layout copy my-dlg]
I hope that helps!
Andrew Martin
Speaking in many tongues, all Rebol...
ICQ: 26227169 http://zen.scripterz.org
[3/3] from: greggirwin:starband at: 2-Sep-2001 10:37
Hi Andrew,
<<
My two changes are here:
my-dlg: [button "Close" [unview]]
[view/new layout copy my-dlg]
>>
Yes! I was trying to use copy with my-dlg being a layout, and it didn't like
that. Your solution is perfect.
Thanks!
--Gregg