Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting records in a grid
Message
 
 
À
11/04/2002 06:41:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00643451
Message ID:
00643701
Vues:
9
Hi Pedro,

Do you already have a class library with all controls? If not yet, it could be a good idea to create one.

If you don't have grid class yet and classlibrary, start from the first step. Otherwise skip to step 2.

1. Go to menu File\New and choose class in the File Type options. Press New file button. It gives you a dialog to create a new class. Type myGrid in a name (or choose a better name), choose grid, as a base class, and type myClassLib in a Library (or open the existing library).

Once you completed it, the class will open for modifications...

2. Go to Class Menu, Select New Property, type the name of the property, give it a description, and then hit Add button. Repeat for another property.

3. Copy the code from the message, Double Click on the class, select appropriate method (say, Init) and paste the code from the message.

Now you have a grid class in your library, which has all the code from the message and properties...

Hope this helps.

>Hi ,
>
> I want use the example that you give
>
>But i ask , where and how i can add two custom properties to my grid class ?
>
>The example say :
>
>Do you have code in your grid to hightlight the current row? This does not happen automatically. To do this, you need code like this in your grid class. First, you need to add two custom properties to your grid class. One is called nRecNo and the other is called lAbout2LeaveGrid. Set This.lAbout2LeaveGrid to .F. in the grid's When() and .t. in the grid's Valid().
>...
>
>and so on
>
>Thanks to all
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform