TxBrowse: Paint problem

TxBrowse: Paint problem

Postby Maurilio Viana » Tue Feb 13, 2007 3:13 pm

Hi!

I'm browsing an array with TxBrowse (from resource). I don't use horizontal scroll bar and don't use header.
The array have more elements than lines displayed in TxBrowse, then when I position in last displayed row and press down arrow occur a paint problem: last line is duplicated. It will repeat for each line after last displayed row :-(
In other words, last visible line will be displayed "n" times.

Regards
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Re: TxBrowse: Paint problem

Postby Maurilio Viana » Wed Feb 14, 2007 10:27 am

Yesterday I tested TxBrowse a long time using a lot of "styles" (with header, without header, with footer, without footer, etc) then I could found the main cause of problem:
Depending on resource height we have the problem on painting browse cells (line level) or width (columns levels).
Data are duplicated on display or cell was wrong painted. It occur when total xbrowse line is more than total visible lines.

What do I to solve?

I couldn't found in xBrowse.prg the correct place were this paint bug occur then in "TxBrowse" resource I enlarged 1 or 2 pixels time of height and/or width and tested several times until get a size were this problem don't occur.

The strange thing is Wbrowse don't depend on "TwBrowse" resource size and have not this paint problem...

Regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby Antonio Linares » Wed Feb 14, 2007 11:03 am

Maurilio,

Could you please provide a small and self contained sample to reproduce it ? thanks,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TxBrowse: Paint problem

Postby Randal » Mon Dec 03, 2007 12:30 am

Maurilio,

I've just started using xbrowse and have encountered the same problem. Did you ever find a solution?

Thanks,
Randal Ferguson


Maurilio Viana wrote:Yesterday I tested TxBrowse a long time using a lot of "styles" (with header, without header, with footer, without footer, etc) then I could found the main cause of problem:
Depending on resource height we have the problem on painting browse cells (line level) or width (columns levels).
Data are duplicated on display or cell was wrong painted. It occur when total xbrowse line is more than total visible lines.

What do I to solve?

I couldn't found in xBrowse.prg the correct place were this paint bug occur then in "TxBrowse" resource I enlarged 1 or 2 pixels time of height and/or width and tested several times until get a size were this problem don't occur.

The strange thing is Wbrowse don't depend on "TwBrowse" resource size and have not this paint problem...

Regards,
Maurilio
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby Otto » Mon Dec 03, 2007 12:50 am

Which FWH version do you use?

With early 7.11 I had problems with seek - see the fix:
http://fivetechsoft.com/forums/viewtopi ... highlight=

Regards,
Otto
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Mon Dec 03, 2007 1:03 am

Otto,

And they got fixed :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Mon Dec 03, 2007 1:04 am

Randal,

> I've just started using xbrowse and have encountered the same problem

Could you please provide a small sample to reproduce it ? Thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Randal » Mon Dec 03, 2007 3:08 pm

Antonio,

I'll try to put one together for you. Using FWH 7.11

Thanks,
Randal Ferguson

Antonio Linares wrote:Randal,

> I've just started using xbrowse and have encountered the same problem

Could you please provide a small sample to reproduce it ? Thanks!
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests