problem with view
[1/3] from: ddsone:tin:it at: 5-Dec-2005 23:20
Hi all
I need open two windows at the same time,
one window must be main and manage second window.
It's possible?
Thanks
[2/3] from: acm::ebanccorp::com at: 5-Dec-2005 16:40
ddsone -
This can be done easily -
main-win: none
control-win: layout [
button "Display 1" [
;hide main-win if showing
if not none? main-win [ unview/only main-win ]
main-win: layout [
across
label "I am Display 1" return
button "Press Me"
]
main-win/
view/new main-win
]
button "Display 2" [
if not none? main-win [ unview/only main-win ]
main-win: layout [
across
label "I am Display 2" return
button "Press Me"
]
view/new main-win
]
]
view control-win
You can then use the offset facet to control where the main-win actually
displays.
I hope this is what you were looking for.
rwd
ddsone wrote:
[3/3] from: antonr::lexicon::net at: 7-Dec-2005 1:28
How about this?
window2: layout [h2 "window2"]
view main-window: layout [
btn "open" [
if not viewed? window2 [
view/new/offset window2 main-window/offset + 200x0
]
]
btn "close" [unview/only window2]
]
Anton.