Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13620 > unrolled thread
| Started by | James Martin <james@northwoodlumber.com> |
|---|---|
| First post | 2022-08-06 19:15 -0400 |
| Last post | 2023-03-10 08:17 -0800 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2022-08-06 19:15 -0400 |
| Subject | Window Focus |
| Message-ID | <tcmslr$583i$1@dont-email.me> |
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
[toc] | [next] | [standalone]
| From | Jamal <nospam@example.com> |
|---|---|
| Date | 2022-08-07 02:12 -0400 |
| Message-ID | <tcnl57$rp9$1@gioia.aioe.org> |
| In reply to | #13620 |
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
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2022-08-20 13:35 -0400 |
| Message-ID | <tdr60a$219ar$1@dont-email.me> |
| In reply to | #13621 |
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 >
[toc] | [prev] | [next] | [standalone]
| From | Jamal <nospam@example.com> |
|---|---|
| Date | 2022-08-22 10:33 -0400 |
| Message-ID | <te043l$1bcf$1@gioia.aioe.org> |
| In reply to | #13622 |
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 >>
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2022-09-26 20:51 -0400 |
| Message-ID | <tgthf3$3s042$1@dont-email.me> |
| In reply to | #13623 |
>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 >>> >
[toc] | [prev] | [next] | [standalone]
| From | Phil McGuinness <mcguinnesssherlock@gmail.com> |
|---|---|
| Date | 2022-09-30 19:14 -0700 |
| Message-ID | <963c2687-9b5e-418a-b49e-42ffea241afan@googlegroups.com> |
| In reply to | #13646 |
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
[toc] | [prev] | [next] | [standalone]
| From | "jmm...@gmail.com" <jmmicmc@gmail.com> |
|---|---|
| Date | 2023-03-10 08:17 -0800 |
| Message-ID | <1dda8df4-dc13-4819-a637-3d02ca69ac91n@googlegroups.com> |
| In reply to | #13623 |
The method TabSelChanging() gives the tab changed from. I needed the one that I changed to. I used "TabSelected" which did what I wanted. James On Monday, August 22, 2022 at 4:33:27 PM UTC+2, 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 > >>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web