Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicFontBold in a container
Message
From
06/02/2005 17:16:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
DynamicFontBold in a container
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984331
Message ID:
00984331
Views:
81
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?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Next
Reply
Map
View

Click here to load this message in the networking platform