Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comboboxes internals
Message
De
24/08/2005 09:35:16
 
 
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:
01043290
Vues:
20
>>>>
>>>>.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.
>>
>>Post the combo's Fontname,fontsize,FontBold,italic....
>
>I found some cases where the new code doesn't work. I think, we have to change the formula. Instead of using this.ListCount we need to use (this.ListCount - this.ListIndex). E.g. in some cases the ListIndex is close to the bottom, and in such cases the drop down portion is bigger than needed.

Strange. (this.ListCount - this.ListIndex) has none sense for me.


>
>Therefore I had to call AdjustWidth method from combo's refresh... :(

Obviously also here there is a bug on VFP C++ code.
Can you tell me these values? I don't understand the your 39
SYSMETRIC(5)  
FONTMETRIC(6,m.combo.FontName,m.combo.FontSize,IIF(m.combo.FontBold,"B",""))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform