Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Saints should always be judged guilty until they are proven innocent. -- George Orwell


devel / comp.lang.clipper.visual-objects / Re: Window Focus

SubjectAuthor
* Window FocusJames Martin
`* Window FocusJamal
 `* Window FocusJames Martin
  `* Window FocusJamal
   `* Window FocusJames Martin
    `- Window FocusPhil McGuinness

1
Window Focus

<tcmslr$583i$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1897&group=comp.lang.clipper.visual-objects#1897

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: james@northwoodlumber.com (James Martin)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Window Focus
Date: Sat, 6 Aug 2022 19:15:05 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <tcmslr$583i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Aug 2022 23:15:07 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="76eb0af5a3eef9c530e2337380aea9fb";
logging-data="172146"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NCMEqhEBn9KaYjKLwT4R9"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:Vmm7TmJMOwVKbEd6mJRWVkAC8Gc=
Content-Language: en-US
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: James Martin - Sat, 6 Aug 2022 23:15 UTC

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

Re: Window Focus

<tcnl57$rp9$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1898&group=comp.lang.clipper.visual-objects#1898

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!aioe.org!usMzckGswq/a27BPojtwGg.user.46.165.242.75.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Window Focus
Date: Sun, 7 Aug 2022 02:12:56 -0400
Organization: Aioe.org NNTP Server
Message-ID: <tcnl57$rp9$1@gioia.aioe.org>
References: <tcmslr$583i$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="28457"; posting-host="usMzckGswq/a27BPojtwGg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.12.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Jamal - Sun, 7 Aug 2022 06:12 UTC

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

Re: Window Focus

<tdr60a$219ar$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1899&group=comp.lang.clipper.visual-objects#1899

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: james@northwoodlumber.com (James Martin)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Window Focus
Date: Sat, 20 Aug 2022 13:35:05 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <tdr60a$219ar$1@dont-email.me>
References: <tcmslr$583i$1@dont-email.me> <tcnl57$rp9$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 20 Aug 2022 17:35:06 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6a1f8f62b657e2f7cdfb67c53235ec5d";
logging-data="2139483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190MkY3saSih/AW44QpIDM9"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:DSGt0Gy3FPvIeCC42vqykqt+upY=
In-Reply-To: <tcnl57$rp9$1@gioia.aioe.org>
Content-Language: en-US
 by: James Martin - Sat, 20 Aug 2022 17:35 UTC

Thanks. I saw them this morning but wasn't sure what they were for. Do
you know whether switching between tabs also works the same way? When
you switch between tabs you change window focus on one hand, however in
another sense you are still in the same master window.

James

On 8/7/22 2:12 AM, Jamal wrote:
> 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
>

Re: Window Focus

<te043l$1bcf$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1900&group=comp.lang.clipper.visual-objects#1900

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!rocksolid2!i2pn.org!aioe.org!usMzckGswq/a27BPojtwGg.user.46.165.242.75.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Window Focus
Date: Mon, 22 Aug 2022 10:33:24 -0400
Organization: Aioe.org NNTP Server
Message-ID: <te043l$1bcf$1@gioia.aioe.org>
References: <tcmslr$583i$1@dont-email.me> <tcnl57$rp9$1@gioia.aioe.org>
<tdr60a$219ar$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="44431"; posting-host="usMzckGswq/a27BPojtwGg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.12.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Jamal - Mon, 22 Aug 2022 14:33 UTC

For the tab selection changing, in the parent window (the one has the
tabcontrol), look at the Properties, CommonControl Events, then select
TabSelChanging.

Jamal

On 8/20/2022 1:35 PM, James Martin wrote:
> Thanks. I saw them this morning but wasn't sure what they were for. Do
> you know whether switching between tabs also works the same way? When
> you switch between tabs you change window focus on one hand, however in
> another sense you are still in the same master window.
>
> James
>
> On 8/7/22 2:12 AM, Jamal wrote:
>> 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
>>

Re: Window Focus

<tgthf3$3s042$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1922&group=comp.lang.clipper.visual-objects#1922

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: james@northwoodlumber.com (James Martin)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Window Focus
Date: Mon, 26 Sep 2022 20:51:47 -0400
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <tgthf3$3s042$1@dont-email.me>
References: <tcmslr$583i$1@dont-email.me> <tcnl57$rp9$1@gioia.aioe.org>
<tdr60a$219ar$1@dont-email.me> <te043l$1bcf$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Sep 2022 00:51:47 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8388ccb3d82d330bf456b336d77e475f";
logging-data="4063362"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vShYoMonjjjXMx4BmmTkc"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:AuSaamTfYPIErEegoayEqp9N/EQ=
Content-Language: en-US
In-Reply-To: <te043l$1bcf$1@gioia.aioe.org>
 by: James Martin - Tue, 27 Sep 2022 00:51 UTC

>Thanks. You got me on the right track. Can tab have their colour
changed in VO?

James

On 8/22/22 10:33 AM, Jamal wrote:
> For the tab selection changing, in the parent window (the one has the
> tabcontrol), look at the Properties, CommonControl Events, then select
> TabSelChanging.
>
> Jamal
>
> On 8/20/2022 1:35 PM, James Martin wrote:
>> Thanks. I saw them this morning but wasn't sure what they were for. Do
>> you know whether switching between tabs also works the same way? When
>> you switch between tabs you change window focus on one hand, however
>> in another sense you are still in the same master window.
>>
>> James
>>
>> On 8/7/22 2:12 AM, Jamal wrote:
>>> 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
>>>
>

Re: Window Focus

<963c2687-9b5e-418a-b49e-42ffea241afan@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1923&group=comp.lang.clipper.visual-objects#1923

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a37:348:0:b0:6cf:f30:9f0b with SMTP id 69-20020a370348000000b006cf0f309f0bmr8286253qkd.735.1664590467956;
Fri, 30 Sep 2022 19:14:27 -0700 (PDT)
X-Received: by 2002:a05:6830:2a0d:b0:656:bd3f:253f with SMTP id
y13-20020a0568302a0d00b00656bd3f253fmr4501373otu.25.1664590467715; Fri, 30
Sep 2022 19:14:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 30 Sep 2022 19:14:27 -0700 (PDT)
In-Reply-To: <tgthf3$3s042$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=220.233.174.33; posting-account=fRzZsQoAAADwaaqj-H-lyUfDBtpEL68c
NNTP-Posting-Host: 220.233.174.33
References: <tcmslr$583i$1@dont-email.me> <tcnl57$rp9$1@gioia.aioe.org>
<tdr60a$219ar$1@dont-email.me> <te043l$1bcf$1@gioia.aioe.org> <tgthf3$3s042$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <963c2687-9b5e-418a-b49e-42ffea241afan@googlegroups.com>
Subject: Re: Window Focus
From: mcguinnesssherlock@gmail.com (Phil McGuinness)
Injection-Date: Sat, 01 Oct 2022 02:14:27 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1495
 by: Phil McGuinness - Sat, 1 Oct 2022 02:14 UTC

snip[ Can I check whether the window has focus before I set the focus to the SLE? ]

oControl := GetFocusedObject() // Make sure we put focus back on original control.
IF oControl != NULL_OBJECT

You can check the Class of the object

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor