Page 4 of 4

Re: eXpress++ Build 268 is released

Posted: Mon Jan 10, 2022 5:30 pm
by rdonnay
Wolfgang -

I don't know yet why this problem shows up for your test program but hasn't been reported by anyone else.

The problem is due to a change I made to FUNCTION _WhenHideEval() in _DCCLASS.PRG.

I made the change because a customer was looking for improved performance when refreshing a Getlist that had a lot of tab pages.
I determined that there was no reason to evaluate HIDE codeblocks on tab pages that are minimized.
There is an obvious flaw in my logic that was not caught by any beta testers.

Make the following change to _DCCLASS.PRG at around line 6826 :

Code: Select all

WAS:

IF Valtype(oXbp:hideBlock) = 'B' .AND. oXbp:isVisible() ;
      .AND. IIF(oXbp:parent:isDerivedFrom('XbpTabPage'),IIF(oXbp:parent:Minimized,.f.,.t. ),.t. )   // build 268

IS:

IF Valtype(oXbp:hideBlock) = 'B'.AND. IIF(oXbp:parent:isDerivedFrom('XbpTabPage'),IIF(oXbp:parent:Minimized,.f.,.t. ),.t. )  


Rebuild dclipx.dll by running BUILD20.BAT

I will correct this problem and put out a new download of DCLIPX.DLL and _DCCLASS.PRG because I expect to hear from more users.

Re: eXpress++ Build 268 is released

Posted: Tue Jan 11, 2022 12:22 am
by Wolfgang Ciriack
Thanks Roger, that works for me.
Now i can go on with build 268.

Re: eXpress++ Build 268 is released

Posted: Tue Jan 11, 2022 1:24 am
by skiman
Hi,

Some months ago there was a thread in this forum about this.

I have the following in my code since then.

Code: Select all

if IsMethod(oXbp,'PARENT') .AND. (!oXbp:parent:isVisible().or. oXbp:parent:isDerivedFrom('XbpTabPage').and.oXbp:parent:Minimized )
With the modification as above there isn't any test on isVisible, which was the original idea of this change?

Re: eXpress++ Build 268 is released

Posted: Tue Jan 11, 2022 1:29 am
by Tom
Isn't invisible and minimized the same with TabPages? :think:

Re: eXpress++ Build 268 is released

Posted: Tue Jan 11, 2022 4:37 am
by rdonnay
With the modification as above there isn't any test on isVisible, which was the original idea of this change?
I recall that the original idea was to not refresh tabpages that are minimized.
Putting the test for isVisible broke code that has been working since 1999.

Re: eXpress++ Build 268 is released

Posted: Tue Jan 11, 2022 8:12 am
by skiman
Hi Tom,
Isn't invisible and minimized the same with TabPages? :think:
As far as I recall, the tabpages don't have the method invisible().