Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6684

Re: "Jumping" tab control

Subject Re: "Jumping" tab control
From Camille Kater <katercam@pt.lu>
Date 2014-03-19 13:08 +0100
Message-ID <1395231715_3@vo.lu> (permalink)
References <2860ada9-348c-4a38-97d1-413b2e1cb10e@googlegroups.com> <d3220d8f-caca-47e7-abc1-b43494788296@googlegroups.com>
Newsgroups comp.lang.clipper.visual-objects

Show all headers | View raw


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
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"Jumping" tab control Krystian Besler <krystian.besler@gmail.com> - 2014-03-18 16:19 -0700
  Re: "Jumping" tab control Camille Kater <katercam@pt.lu> - 2014-03-19 08:18 +0100
  Re: "Jumping" tab control Krystian Besler <krystian.besler@gmail.com> - 2014-03-19 02:14 -0700
    Re: "Jumping" tab control Camille Kater <katercam@pt.lu> - 2014-03-19 13:08 +0100
      Re: "Jumping" tab control Krystian Besler <krystian.besler@gmail.com> - 2014-03-19 07:02 -0700
  Re: "Jumping" tab control "Jamal" <someone@example.com> - 2014-03-19 11:44 -0400
    Re: "Jumping" tab control Krystian Besler <krystian.besler@gmail.com> - 2014-03-19 09:08 -0700
      Re: "Jumping" tab control Steve E <steven_emmett@yahoo.co.uk> - 2014-03-20 00:19 -0700

csiph-web