Page 1 of 1

TxBrowse: Paint problem

Posted: Tue Feb 13, 2007 3:13 pm
by Maurilio Viana
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

Re: TxBrowse: Paint problem

Posted: Wed Feb 14, 2007 10:27 am
by Maurilio Viana
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

Posted: Wed Feb 14, 2007 11:03 am
by Antonio Linares
Maurilio,

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

Re: TxBrowse: Paint problem

Posted: Mon Dec 03, 2007 12:30 am
by Randal
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

Posted: Mon Dec 03, 2007 12:50 am
by Otto
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

Posted: Mon Dec 03, 2007 1:03 am
by Antonio Linares
Otto,

And they got fixed :-)

Posted: Mon Dec 03, 2007 1:04 am
by Antonio Linares
Randal,

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

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

Posted: Mon Dec 03, 2007 3:08 pm
by Randal
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!