Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make current record bold
Message
From
06/08/2004 02:43:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Make current record bold
Miscellaneous
Thread ID:
00931225
Message ID:
00931225
Views:
57
Dear Sir,

I am using VFP6. To make current row/record bold in grid, I took the following codes from a website. These codes work fine as prg but I want to use it with a grid on form.

What should I do write on following

form1.Init
grid1.Init
grid1.AfterRowColChange

Please help
CLOSE ALL
USE HOME(1) + "labels"

loForm = CREATEOBJECT("Form")
loForm.AddObject("grid1", "grdBold")
loForm.Grid1.SetAll("DynamicFontBold", "RECNO() = This.nBoldRow")
loForm.grid1.Visible = .T.
loform.autocenter=.t.
loForm.Show(1)

DEFINE CLASS grdBold as Grid
	nBoldRow = 0
	PROCEDURE AfterRowColChange
		LPARAMETERS nColIndex
		This.nBoldRow = RECNO()
		This.Refresh
	ENDPROC 
ENDDEFINE
Next
Reply
Map
View

Click here to load this message in the networking platform