FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TxBrowse: Paint problem
Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
TxBrowse: Paint problem
Posted: Tue Feb 13, 2007 03: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

Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
Re: TxBrowse: Paint problem
Posted: 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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TxBrowse: Paint problem
Posted: 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
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Re: TxBrowse: Paint problem
Posted: 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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
TxBrowse: Paint problem
Posted: 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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TxBrowse: Paint problem
Posted: Mon Dec 03, 2007 01:03 AM

Otto,

And they got fixed :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TxBrowse: Paint problem
Posted: Mon Dec 03, 2007 01: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
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
TxBrowse: Paint problem
Posted: Mon Dec 03, 2007 03: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!

Continue the discussion