Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13191
| From | "Glen Townsley" <coogee.2015@gmail.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Timer inside tabbed window |
| Date | 2020-12-22 05:07 +1000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <rrqrn2$15n8$1@gioia.aioe.org> (permalink) |
| References | <0ca6223b-ad5f-4219-87e1-62498b361ff7o@googlegroups.com> <i42pbbFj5jlU1@mid.individual.net> <01418e2b-dae9-4fd4-b8f7-01ceb13ea010o@googlegroups.com> |
James,
Why not capture the event in the owner of the tabs and pass it to the
focused tab page?
Cheers
Glen
"James Martin" wrote in message
news:01418e2b-dae9-4fd4-b8f7-01ceb13ea010o@googlegroups.com...
This is what I use (It works on the window, but not inside a tabbed window):
METHOD StartTimer() AS VOID PASCAL CLASS HttpHuron
try
IF SELF:lTimerInit
SELF:lTimerInit := FALSE
SELF:StopTimer()
ENDIF
// If there is no timer active
Sleep(100)
IF SELF:nTimerHandle == 0
// Create a new times
SELF:nTimerHandle := SetTimer(SELF:handle(),1,1000,NULL_PTR)
// Call the timer Method
SELF:timer()
SELF:lTimerInit := TRUE
SELF:nTimer := 10
SELF:MTimer := SELF:nTimer
Sleep(100)
ENDIF
ENDTryNoReturncatch
* InfoBox{SELF,"Timer Start " +
Str(SELF:nTimer),IIF(SELF:lTimerInit,"Started","Not Started")}:Show()
RETURN
James
On Thursday, December 17, 2020 at 11:26:21 PM UTC-5, Wolfgang Riedmann
wrote:
> Hi James,
>
> you can use directly the timers from the Windows API.
>
> Please look at the SetTimer() function in the Windows API.
>
> Wolfgang
>
> James Martin wrote:
>
> > Does anyone know how to work around this problem. I have several data
> > windows open inside tabs in a data window. The timers work well when
> > the windows is opened by itself, but when I open them inside a tabbed
> > window the timer ticks never reach the window in the tabbed window. I
> > hope this is not confusing!
> >
> > To explain the situation better I have one window with a full size
> > tab control on it. All the other windows are inside these tabs. This
> > works extremely well as I can tab between the open active windows any
> > time. But the problem is that I can't use timers!
> >
> > James
>
>
>
> --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Timer inside tabbed window James Martin <jmmicmc@gmail.com> - 2020-12-17 14:52 -0800
Re: Timer inside tabbed window "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-12-18 05:26 +0100
Re: Timer inside tabbed window James Martin <jmmicmc@gmail.com> - 2020-12-18 05:09 -0800
Re: Timer inside tabbed window "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-12-21 16:33 +0100
Re: Timer inside tabbed window "Glen Townsley" <coogee.2015@gmail.com> - 2020-12-22 05:07 +1000
Re: Timer inside tabbed window Jamal <nospam@example.com> - 2020-12-21 16:03 -0500
Re: Timer inside tabbed window James Martin <jmmicmc@gmail.com> - 2020-12-28 13:10 -0800
Re: Timer inside tabbed window "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-12-29 21:29 +0100
csiph-web