Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicFontBold in a container
Message
 
To
06/02/2005 17:16:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984331
Message ID:
00984499
Views:
15
Dragan, here what I do for testing (not works very well but have no time for adjustments :o))))

Add a property in Your Container Class i.e. FontBold. In Init Event of the container Class:
*** Init
IF PEMSTATUS(this.Parent.Parent,"AfterRowColChange",5)
   BINDEVENT(this.Parent.Parent,"AfterRowColChange", this, "AfterChange",[flags here])
ENDIF

*** AfterChange Method of the Container
LPARAMETERS nColIndex

IF .NOT. EMPTY(this.FontBold) .AND. TYPE(this.FontBold) == "L"
   this.Text1.FontBold = EVALUATE(this.FontBold)
ENDIF

*** Detsroy of the Container

UNBINDEVENTS(this.Parent.Parent)


*** In init Event of the form / Grid
This.Grid1.ColumnWithContainer.SetAll("FontBold","YourConditionHere","ContainerClassName")
Smething like that.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform