Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comboboxes internals
Message
 
 
To
23/08/2005 15:56:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01043044
Message ID:
01043061
Views:
16
>
>.ColumnWidths = LTRIM(STR(.Width-IIF(.ListCount>EVL(.DisplayCount,7),39+SYSMETRIC(5),39)));
>+ REPLICATE(',0',.ColumnCount-1)
>
Doesn't work. E.g. the affect is oposite - even if I have scrollbar, the drop-down width is less than the combo's width on the scrollbar's width.

Let me see, if I can modify your code.

Ok, this works:
.ColumnWidths = LTRIM(STR(.Width-IIF(.ListCount>EVL(.DisplayCount,7),39,39-SYSMETRIC(5)))) ;
			+ REPLICATE(',0',.ColumnCount-1)
You thought 39 was for smaller sets, but my 39 worked for bigger sets, so I just had to flip the logic.
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