Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comboboxes internals
Message
 
 
À
24/08/2005 11:36:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01043044
Message ID:
01043410
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform