Bryan - Gendev
Programmer
I have a form with a programmed grid on it based on a cursor with a logical field DoDel.
I want to have a checkbox based on this field in my grid. My added chkbox control displays correctly but when I click in it a previous form opens. My code segments are
and my control Check1
If I can get this working correctly I will strikeout the row and ultimately delete all rows that are .T.
Any suggestions please?
GenDev
I want to have a checkbox based on this field in my grid. My added chkbox control displays correctly but when I click in it a previous form opens. My code segments are
Code:
With This.Column5
.Header1.Caption = 'Del'
.Header1.BackColor= Rgb(255,255,255)
.Header1.ForeColor = Rgb(255,0,0)
.Header1.FontBold = .T.
.ControlSource = 'mycursor.DODEL'
.BackColor= Rgb(255,255,255)
.ForeColor = Rgb(255,0,0)
.AddObject('Check1','checkbox')
.currentcontrol = 'Check1'
.Visible = .T.
.Sparse = .F.
.Width = 18
endwith
and my control Check1
Code:
DEFINE CLASS Check1 AS CHECKBOX
HEIGHT = 17
WIDTH = 18
AUTOSIZE = .T.
CAPTION = ""
NAME = "Check1"
PROCEDURE CLICK
SET STEP ON
IF DODEFAULT()
KEYBOARD '{DNARROW}'
ENDIF
ENDPROC
ENDDEF
If I can get this working correctly I will strikeout the row and ultimately delete all rows that are .T.
Any suggestions please?
GenDev