TBrowse stabilization bug

This is a discussion on TBrowse stabilization bug within the xharbour forums in Programming Languages category; Hello, All After several calls stabilize() method TBrowse object incorrect displayed on the screen. See test below: Function Main() Local oB, n, cField dbCreate('test', {{'NN', 'N', 3, 0},{'CC', 'C', 30, 0}},, .t.) for n := 1 to 64 dbAppend() Field->NN := n Field->CC := Str(n) next go top cls oB := TBrowseDB(1,1,18,50) for n := 1 to FCount() cField := FieldName( n ) oB:AddColumn( TBColumnNew( cField, FieldBlock( cField ) ) ) next oB:goTop() oB:ForceStable() oB:PageDown() for n := 1 to 12 if ! oB:stable() oB:stabilize() endif next oB:PageDown() for n := 1 to 12 if ! oB:stable() oB:stabilize() endif next ...

Go Back   Application Development Forum > Programming Languages > xharbour

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-20-2008, 03:28 AM
tpe2@mail.ru
Guest
 
Default TBrowse stabilization bug

Hello, All

After several calls stabilize() method TBrowse object incorrect
displayed on the screen. See test below:

Function Main()
Local oB, n, cField

dbCreate('test', {{'NN', 'N', 3, 0},{'CC', 'C', 30, 0}},, .t.)
for n := 1 to 64
dbAppend()
Field->NN := n
Field->CC := Str(n)
next
go top
cls
oB := TBrowseDB(1,1,18,50)
for n := 1 to FCount()
cField := FieldName( n )
oB:AddColumn( TBColumnNew( cField, FieldBlock( cField ) ) )
next
oB:goTop()
oB:ForceStable()
oB:PageDown()
for n := 1 to 12
if ! oB:stable()
oB:stabilize()
endif
next
oB:PageDown()
for n := 1 to 12
if ! oB:stable()
oB:stabilize()
endif
next
oB:PageDown()
for n := 1 to 13
if ! oB:stable()
oB:stabilize()
endif
next
oB:PageDown()
for n := 1 to 12
if ! oB:stable()
oB:stabilize()
endif
next
oB:PageDown()
for n := 1 to 12
if ! oB:stable()
oB:stabilize()
endif
next
oB:PageDown()
for n := 1 to 13
if ! oB:stable()
oB:stabilize()
endif
next
oB:PageDown()
oB:ForceStable()
wait
return nil

Best regards, Pavel Tsarenko
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:13 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.