[REBOL] Re: Pane Pain
From: sanghabum::aol::com at: 30-Sep-2001 17:19
[carl--rebol--com] writes:
> One way is to tell the main-display face to become the active
> window:
>
> activate-face: func [face] [
> face/changes: 'activate
> show face
> ]
>
> activate-face main-display
>
> This will make the window active, and will throw focus to it.
> However, on some operating system versions (like Win98), this
> may simply blink the task's icon in the task bar.
>
Thanks. That works fine for me on Windows 98. The key thing is that your
method does not force a redraw each time, hence no flicker.
There's still the odd interaction with the minimize function, so I need some
extra code to save and restore the latest actual screen position. (View 1.2.1
must be cheating a little to implement Win98 minimize. It gives the panel an
offset of 3000x3000. If that's hardwired, expect some complaints one day from
HiRes multi-monitor users <g>).
--Colin.