Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13621

Re: Window Focus

From Jamal <nospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Window Focus
Date 2022-08-07 02:12 -0400
Organization Aioe.org NNTP Server
Message-ID <tcnl57$rp9$1@gioia.aioe.org> (permalink)
References <tcmslr$583i$1@dont-email.me>

Show all headers | View raw


You can use the FocusChange() and Activate() callback events of the 
Window class.

The docs has an explanation and sample code for those events.

Jamal

On 8/6/2022 7:15 PM, James Martin wrote:
> Is there a way I can check whether a window is in focus?
> 
> I have a window that is sometimes in the background and has a timer 
> running every second. Sometimes when a certain condition exists it gives 
> focus to a single line edit. This is perfect when the window is in 
> focus, but annoying when you are in another window, since it robs the 
> cursor from the window you are working in.
> 
> Can I check whether the window has focus before I set the focus to the SLE?
> 
> Thanks for all the help I get here. VO still works very well!
> 
> James

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Window Focus James Martin <james@northwoodlumber.com> - 2022-08-06 19:15 -0400
  Re: Window Focus Jamal <nospam@example.com> - 2022-08-07 02:12 -0400
    Re: Window Focus James Martin <james@northwoodlumber.com> - 2022-08-20 13:35 -0400
      Re: Window Focus Jamal <nospam@example.com> - 2022-08-22 10:33 -0400
        Re: Window Focus James Martin <james@northwoodlumber.com> - 2022-09-26 20:51 -0400
          Re: Window Focus Phil McGuinness <mcguinnesssherlock@gmail.com> - 2022-09-30 19:14 -0700
        Re: Window Focus "jmm...@gmail.com" <jmmicmc@gmail.com> - 2023-03-10 08:17 -0800

csiph-web