Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9 Container/ListBox Bug?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP9 Container/ListBox Bug?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01006312
Message ID:
01006312
Views:
88
Hi

I have found a bug in they way controls inside a container are painted. This bug results in parts of the control showing outside the boundary of the container. The following code illustrates the problem:
Public go
go=CreateObject("Form")
go.Addobject("constd","constd")
go.constd.Visible=.Y.
go.Show()
Return
Define Class constd as Container
   Width=250
   Height=120
   borderwidth=1
   specialeffect=1
   Add Object lststd as ListBox With width=300,height=100,rowsourcetype=1,rowsource="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z",;
   autohidescrollbar=1
EndDefine
If you run the code above and then use the mouse wheel on the listbox the scroll bar will display outside of the container. This also happens if you issue:

go.constd.lststd.requery

or

go.constd.lststd.Visible=.N.
go.constd.lststd.Visible=.Y.

Simon
Simon White
dCipher Computing
Next
Reply
Map
View

Click here to load this message in the networking platform