Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comboboxes internals
Message
 
 
To
24/08/2005 11:36:10
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:
01043410
Views:
13
>The line
>
>#IF VERSION( 2 )<900
>
>
>should read
>
>
>#IF VERSION( 5 )<900
>
Thanks. In my final code I removed it at all. Here is the code as it is right now:
WITH this
	IF .Width > 100	AND EMPTY(.ColumnWidths)
		.ColumnCount = MAX(.ColumnCount,2)
		.ColumnWidths = LTRIM(STR(.Width-IIF(.ListCount > EVL(.DisplayCount,7),40,40-SYSMETRIC(5)))) ;
			+ REPLICATE(',0',.ColumnCount-1)
	ENDIF
ENDWITH
100 and 40 are some arbitrary numbers. However, this code doesn't work in cases, where the listindex is close to the bottom of the list.

I'm not sure, if you want to help me with this problem, but if you can, I appreciate it.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform