TxBrowse: Paint problem

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

TxBrowse: Paint problem

Post 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
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Re: TxBrowse: Paint problem

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Maurilio,

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

Antonio Linares
www.fivetechsoft.com
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Re: TxBrowse: Paint problem

Post 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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Otto,

And they got fixed :-)
regards, saludos

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

Post 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!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Randal
Posts: 250
Joined: Mon Oct 24, 2005 8:04 pm

Post 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!
Post Reply