>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement