Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicFontBold in a container
Message
De
06/02/2005 18:47:50
 
 
À
06/02/2005 17:16:17
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:
00984335
Vues:
20
>I've created a nice hierarchical grid by instantiating a set of containers, one per level. The container holds the usual textbox, and both the container and the textbox are transparent, so the underlying color shows through (colors denote levels, as does the textbox's .left). The dynamicCurrentControl is decided by hierarchy level.
>
>By this transparency and the manipulation of the .left of the textbox I've made this work and look nice. Now I wanted to do one more thing: dynamic font bold for the current branch of the hierarchy, just to give the user a visual clue which records belong to it.
>
>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.
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