Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicFontBold in a container
Message
De
07/02/2005 12:33:23
 
 
À
07/02/2005 10:32:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00984331
Message ID:
00984484
Vues:
19
>>>For the columns where the current control is simple, this works. However, the textbox permanently have .fontbold=.f. and I don't really know how to make this happen (short of evaluating the DynamicFontBold expression of the column, which I expect may be slow). [update: it actually doesn't work, as I have to set it in the refresh of the container, and so it works only for the current row's container]
>>>
>>>Any ideas?
>>
>>Hmmm.. I'm not sure whether I fully understand your grid's structure. Anyway...
>>First I imagined that if you don't use DynamicFontBold, that DynamicFontBold will be False all the time and dynamically set the font to non-bold all the time, no matter what you do elsewhere. After some experimenting I now think that DynamicFontBold is not tested if not specified (hence the REAL default (None), which by the way is not documented).
>>This opens the way to setting the fontbold in another way, but everything that I tried would only influence the fontbold of the WHOLE column. Perhaps you can define a Text2, set its fontbold to True and then influence CurrentControl.
>
>This just gave me the idea... the container doesn't have any font properties, which is why the dynamicfont* doesn't apply to it. I'll try to add the .FontBold property to the container and see what happens.

Don't know exactly what you intend, but my CurrentControl tip is bound to fail for the same reason why setting fontbold fails: It will apply to the WHOLE column. This is what I figured out in my car, rethinking what I wrote. :)
Why are you so inclined to NOT use the Dynamic Properties?
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform