General information
Category:
Coding, syntax & commands
Hi,
Try this solution:
1. You create new class base on CONTAINER control and add CHECKBOX control with it's caption = '' on it. The name of checkbox is chk (Just example).
2. Write following code in INIT event of new class
WITH THIS && container
.Width = .Parent.Width
.Height = .Parent.Parent.RowHeight - 2
.chk.Left = INT((.Width - 15)/2)
.chk.Top = INT((.Height - 15)/2)
.ActiveControl = .chk
ENDWITH
3. Add new class to replace control on column of grid.
Remember set SPARSE property of column is .F.
-----------
Danh,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only