Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Half item showing in listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00052650
Message ID:
00052683
Views:
36
>>>>I have a listbox on my form that populates with different items based on previous selections. If the number of items goes beyond the size of the listbox, for the last visible item only half can be seen. ie. I can see 10 1/2 items in the listbox. Is there a way to prevent this from happening?
>>>
>>>Set the .IntegralHeight property to .T.
>>>
>>>hth,
>>>
>>>George
>>
>>I did this and in design mode the listbox adjusts slightly smaller than it's height but when I run the form the listbox is still the same as before with half an item showing at the bottom. Is there something else that I'm missing?
>
>Are you changing font/font size during the .Init? I haven't seen an instance where this occurs. Setting it to .T. seems to work fine whether the form is run from a DO or instantiated.
>
>George

I think it's a bug. The selections that determine what shows in the listbox are on Page1 of a pageframe and the listbox is on Page2. If I click Page2 the correct item is selected but .IntegralHeight doesn't work. If I then use the top arrow of the scrollbar to scroll to the top of the listbox, click Page1 and then click Page2 the correct item is selected and .IntegralHeight works. If I then click Page1 and then Page2 again .IntegralHeight is not working again. Does this happen to anyone else?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform