Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop down doesn't show width correctly first time
Message
 
 
To
18/02/2016 07:40:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01631636
Message ID:
01631670
Views:
42
I fixed the problem by setting NumberOfElements to 10. Originally the last element was not shown and it probably affected the size.


>Still not sure I understand
>this only advice I could give (from experience) is to blank out .RowSource before refill, then reassign:
>
>.RowSource = ''
>select ... into array thisForm.someArray
>.RowSource = 'thisForm.someArray' && this refills .List[] where everything takes place
>
>
>>>it'd be nice and usefull to know how your code populates thisForm.aQuantityTypes
>>>
>>It first selects data from SQL Server in the cursor and then re-selects from the cursor into the array in the method called from Form's Load.
>>
>>Also, I tried setting ColumnsWidth in design time and it didn't help. I haven't yet tried in run-time.
>>
>>But I just noticed that I have a value pre-set in this drop down. Not sure why I did that, I'm going to try removing.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform