Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comboboxes internals
Message
 
 
À
24/08/2005 12:08:18
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:
01044064
Vues:
17
Hi Fabio,

I found the source of the problem. The code works fine as it is as long as the field value is in the combo's rowsource. If, for example, I have an empty value in my field and it's not in the list of possible choices, in some cases I may have the incorrect appearance. So, for these combos I just have to add a blank value to the list and everything worked as expected.

Thanks again for your help.

>>>Naomi, I consider few who criticizes a thing after having seen it,
>>>because who doesn't have the ability to foresee the result
>>>it cannot have the ability to judge it.
>>>It can clearly have the power to do it, but this is another thing....
>>>
>>>Returning to the matter.
>>>It needs to establish of the rules and of the priorities
>>>Priority: substance:
>>>The popup has to show all the information.
>>>Then you cannot cut the text
>>>
>>>width=MAX(defaultpopup.width,combo.width)
>>>
>>>
>>>Rule: Aesthetics:
>>>it is as in to dress:
>>>two very different colors can be very well together,
>>>but two almost equal they often make disgust.
>>>Then,
>>>if defaultpopup.width a little smaller is of combo.width,
>>>then it is worthwhile to apply the rule 1.
>>>otherwise it is worthwhile to leave it as VFP builds it.
>>>
>>>Result:
>>>
>>>#define DRESSPOPUPMARGIN 10
>>>width=IIF(BETWEEN(combo.width-defaultpopup.width,1,DRESSPOPUPMARGIN),defaultpopup.width)
>>>
>>>
>>>The funny one is as to do it!
>>>How to discover defaultpopup.width?
>>>If VFP were a true OOP, it would return a contained object in the combo that checks the popup, but it is not this way.
>>>Then, to do it, we needs to capture the window of the popup with BINDEVENT,
>>>and to resize it with a few of APIs calls, withou fire some C0005!
>>
>>Not sure I understand you, but it sure does sound like a very complicated task. It would be great if we can have a combo property DropDownWidth and can manipulate it in run-time.
>
>And popup font also !!!!
>try to set the fontSize = 72 !!
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform