Subject: Re: "Jumping" tab control From: Camille Kater Date: Wed, 19 Mar 2014 13:08:05 +0100 Message-ID: <1395231715_3@vo.lu> References: <2860ada9-348c-4a38-97d1-413b2e1cb10e@googlegroups.com> Lines: 72 NNTP-Posting-Host: 188.115.5.121 Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!texta.sil.at!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.vo.lu!not-for-mail Newsgroups: comp.lang.clipper.visual-objects X-Trace: vo.lu 1395231715 188.115.5.121 (19 Mar 2014 13:21:55 0100) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 140319-0, 19/03/2014), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.clipper.visual-objects:6684 Hi, I would try to avoid the expose() method for these things, as the expose() method gets called several times. Maybe transferring it in a postinit() method could avoid these "blinkings." Camille On 19/03/2014 10:14, Krystian Besler wrote: > On Wednesday, March 19, 2014 12:19:49 AM UTC+1, Krystian Besler wrote: >> Hi, >> >> >> >> I ask for help. >> >> I have a data window with some pages of a tab control and some buttons; one of them are the prev and next buttons to navigate up and down through the database. >> >> In the expose method I put the algorithm of retrieving data, and in prev/next buttons I must use SelectTab(#current tab) method, to force refreshing of the window. Now after pressing the button, the contents of the window "jumps" for a second. How to make the process more smooth or how to freeze the screen for the moment of changing the content ? >> >> >> >> Thanks for suggestion >> >> Krystian > > Hi Camille, > > Thank you for answer, but unfortunately, things go from bad to worse. > I put the code in expose method : > IF SELF:oParent:Ini_expose1 > ret := LockWindowUpdate( SELF:handle() ) > > SELF:oParent:Ini_expose1 := FALSE > SELF:oParent:Akt_page := #Ko_1 > > FOR i := Len(SELF:tab_pol) DOWNTO 1 > baza := SELF:tab_pol[i, 2] > poleform := String2Symbol('oDC'+SELF:tab_pol[i, 1]) > > IF SELF:xjaka_akcja = 'P' .OR. SELF:wypelnianie > IVarGetSelf(SELF, poleform):value := baza:FIELDGET(SELF:tab_pol[i, 1]) > ELSE > IVarGetSelf(SELF, poleform):value := SELF:tab_pol[i, 3] > ENDIF > NEXT > > LockWindowUpdate( NULL_PTR ) > ENDIF > > The window still blinks and - what is new, i loose colors on the form and the underlaying browser start to blink/jump for a moment. > > Thanks for your advice - i get to know a new function/group of functions, but i ask for another suggestion. > > Regards > Krystian >