Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETALL
Message
 
To
28/11/2000 02:21:39
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: SETALL
Miscellaneous
Thread ID:
00446038
Message ID:
00446065
Views:
9
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform