[View] action on windows display
[1/2] from: ingo::h-o-h::org at: 30-Jan-2003 12:25
Hi All,
I would like to have a window which reads in the windows clipboard,
whenever
is is rediplayed (i.e. when a window in front is minimized, if I "tab"
to
it ...)
How do I catch this event?
Thanks to all,
Ingo
[2/2] from: anton:lexicon at: 31-Jan-2003 0:21
Well, on windows 2000, this program shows
some events:
view/new lay: layout [button]
lay/feel: make lay/feel [
detect: func [face event][
print [event/type event/offset]
event
]
]
wait none
active 0x0
move 555x627
move 32767x32767
inactive 0x0
active 0x0
move 322x32
move 32767x32767
inactive 0x0
active 0x0
move 615x819
move 32767x32767
inactive 0x0
active 0x0
move 615x819
move 32767x32767
inactive 0x0
The events [active move] are triggered when
the window becomes active (is switched to).
The events [move inactive] are triggered when
the window becomes inactive.
I think you can just act upon the events [active inactive]
to get the functionality you want.
Anton.