Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Can I do a CLICK procedure for column created at runtime?
Hi there,
I have a VFP 5.0 application that I'm working on, and I have the following code on my form.init:
***********************************
with THISFORM.grid1
.columncount = .columncount+1
with .COLUMNS(.columncount)
.NAME = 'colBox'
.Columnorder=2
.WIDTH = 30
.HEADER1.CAPTION = ''
.HEADER1.ALIGNMENT = 2
.AddObject('Check1','CheckBox')
.Check1.Visible=.t.
.currentcontrol = 'Check1'
.Sparse = .f.
.check1.caption = ""
.readonly = .F.
endwith
endwith
***************************************
I would like to have some code run when the user clicks on one of the checkboxes created in my new column, but I don't know how to do that with an object created at runtime. Any ideas would be greatly appreciated!
Thanks,
Joe
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement