DCBROWSE multirow color refresh bad when scroll with mouse

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 529
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

DCBROWSE multirow color refresh bad when scroll with mouse

#1 Post 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.

User avatar
Eugene Lutsenko
Posts: 1351
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: DCBROWSE multirow color refresh bad when scroll with mou

#2 Post 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("
Attachments
Безымянный.jpg
Безымянный.jpg (255.32 KiB) Viewed 1090 times


Victorio
Posts: 529
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DCBROWSE multirow color refresh bad when scroll with mou

#4 Post 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

Victorio
Posts: 529
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DCBROWSE multirow color refresh bad when scroll with mou

#5 Post 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

Post Reply