Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Timer inside tabbed window Date: Mon, 21 Dec 2020 16:33:48 +0100 Lines: 73 Message-ID: References: <0ca6223b-ad5f-4219-87e1-62498b361ff7o@googlegroups.com> <01418e2b-dae9-4fd4-b8f7-01ceb13ea010o@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net qkjMDGaxIrhfxGtLsITi4Q4c0JHaqAVw5yDArxfdy4t9T3Kf4= Cancel-Lock: sha1:iWVBTGIyDeWkwDgtCaOXupDoO8g= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13189 Hi James, not every event is passed down to a tab page. I don't have the time to look at the VO GUI Classes sources, but I suspect this is also the case for the Timer() method. Wolfgang James Martin wrote: > 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 > > > > > > > > -- --