Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to add a FOR loop to update a grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00255835
Message ID:
00256229
Vues:
28
>
>The Grid's ColumnCount is visible in the Init of the Grid or Init of the Form (things are inited from the inside out.) What are you planning to click, a control in the Column (in which case, your Control in the Column will receive the double click), or the Heading of the control (in which case, you need to subclass the Header class), since the column doesn't have a Click or DoubleClick() event of its own.

Ed, Eric has given me some info on grids and told me that what I was intending was not possible.

>>You can't add code to a method at runtime. You'll have to wither manually add this code to each textbox in the grid, or create a textbox class that has this code in it, and loop through the columns at runtime, adding this subclassed textbox and removing the stock textbox.
>
>How about the .setall ?
>
>You can change back color and other things with it. It compiles and does not error in the init for the grid. It just does not work when the dblclick takes place.
>
>ceffect1= "ThisForm.pgfBizObj.ActivePage = ThisForm.nGoToPageOnEdit"
>this.SetAll("dblclick", ceffect1 , "text")
>
>
>Thanks.

There is a difference betwen setting a property and writing code. SetAll is made to set a property for a group of controls, and cannot be used to fill code in. You might also come accross WriteMethod- this is used for writing code to a control, but can only be used at design time. For details about how to switch out a grid control at runtime, check out my article here in the knowledge base called "A smarter grid" or something like that.


Thanks
__Stephen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform