Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETALL
Message
 
À
28/11/2000 02:21:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: SETALL
Divers
Thread ID:
00446038
Message ID:
00446065
Vues:
11
>Sorry, I am not familiar with SubClass.
>
>Can you show me a sample code in grid init method?
>
>Thank u.


With subclassing is meant that you creat a class with the code you want:
THISFORM.nextLine(nKeyCode)

Then you can add the newly created textbox class to the columns of the grid by dropping it in them.
You can do this by selecting the column in the grid within the properties window.
Then click on the title of the form.
Then select your textbox class, and drop it into the column.
You also can remove the default textbox (text1) then with selecting it in the properties window, clicking on the forms titlebar, and then pressing delete.

You do not need to write code in the forms init then, cause the code is already in the textbox class.

If you are populating a grid at runtime and then change the number of columns you can loop throug the columns collection and add your class with addobject and remove the default textbox with removeobject.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform