Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I do a CLICK procedure for column created at runtime
Message
De
04/06/2002 11:01:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/06/2002 10:54:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00664483
Message ID:
00664487
Vues:
23
>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!

1) I suggest you use the HTML code < PRE >, to make your codes more readable (spaces will be kept).

2) For custom methods, you can add objects based on a class.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform