Page 1 of 1

DCBROWSE multirow color refresh bad when scroll with mouse

Posted: Fri Jul 10, 2020 6:37 am
by Victorio
Hi,

I have used multirow in DCBROWSE like this:

Code: Select all

@pozyvl,10 DCBROWSE oBrowsevl ALIAS "POMDBF7S" ;
           SIZE rozxvl,rozyvl PIXEL ;
           NOSOFTTRACK ;
           OPTIMIZE ;
	   HEADLINES 2 ;
           CURSORMODE XBPBRW_CURSOR_ROW ;
           SCROLLBARHEIGHT fontnv+2 ;
	   ITEMMARKED {||nil} ;
	   ITEMSELECTED {||nil} ;
           TAGENABLE ;
           TAGELEMENT 35 ;
           TAGMODE DCGUI_TAGMODE_CLEAR ;
	   PRESENTATION aPres 

        DCBROWSECOL FIELD POMDBF7S->CISKU ;
           HEADER "K.Ú. " WIDTH znakpixc[1]*9  

        DCBROWSECOL FIELD POMDBF7S->NAZOV ;
           HEADER "Názov k.ú.  " WIDTH znakpixc[1]*25  

        DCBROWSECOL DATA {{||padl(POMDBF7S->VLAS,220)},{||padl(str(POMDBF7S->ICOS),15," ")+padl(str(POMDBF7S->RCIS),15," ")}} ;
          HEADER "Pôvodný Vlastník;Identifikátor / Identifikátor BSM" WIDTH znakpixt[1]*30  

DCREAD GUI CLEAREVENTS ;
           OPTIONS GetOptions ;
           TITLE "[ ZOZNAM LV VLASTNÍKA ] - [ "+alltrim(dbfzoznamlv)+" ]"  ;
           EVAL {|o|SetAppWindow(o), ;
		SetAppFocus(oBrowsevl:GetColumn(1)), ;
                oBrowsevl:RefreshAll(),oBrowsevl:ForceStable(),;
		DC_Getrefresh(oStatic),;
		eval(baZ9),eval(baZ10),eval(baZ11),oBrowsevl:RefreshAll() ;
		}
And when I scrolling rows, sometimes multirow fields stay painted however I click to other row. It happens for example when I go to top or bottom table.
I read some posts here about some problems with coloured multirow but I do not know, if this is same problem.

Any advice how can refresh colour browser rows also when scrolling with mouse ? Because this is problem only when use mouse scroll, not when listing with keyboard.

Re: DCBROWSE multirow color refresh bad when scroll with mou

Posted: Fri Jul 10, 2020 11:14 am
by Eugene Lutsenko
Is it similar? If so, how it is done is here: http://lc.kubagro.ru/__AIDOS-X.txt. Search: "n F4_1_3_6("

Re: DCBROWSE multirow color refresh bad when scroll with mou

Posted: Sat Jul 11, 2020 1:52 am
by PedroAlex

Re: DCBROWSE multirow color refresh bad when scroll with mou

Posted: Mon Jul 13, 2020 12:58 am
by Victorio
Hi,

It is same as PedroAlex example, sometimes rows stay blue , often where scroll to top or bottom table.
when I run obrowsevl:refreshall(), this blue rows refresh and will clear, I also tryed run refreshall() with timer only for example in 1 seconds interval, to examine what happens, but this blinking not for real use.

I saw this post about generic.prg,... but I do not know if this help to my problem.

Ok, now I will try implement it to my source whats happen.

thx

Re: DCBROWSE multirow color refresh bad when scroll with mou

Posted: Tue Jul 14, 2020 8:05 am
by Victorio
Hi,

yesterday I installed release of express 265 ( with 266 I have some problem in Xbase++ Foundation 2.0 that not work for me), and problem with DCBROWSE lost.
Now work without problem, only moving cursor is little different as older version 260.
at this moment I do not need no changes in my source.
thx