|
Using Smart-Type with Edit-In-Place |
Top Previous Next |
|
Smart-Type can be used with Edit in place on a standard Clarion ABC Browse.
The Steps needed are ...
1. Change the base class ofr the field you wish to enable to the STEditText Class ...
2. Now you need to initialise the smart-type class. the easiest way to do this is with the smart-type code template ...
The only tricky bit is locating the correct embed point ...
The code template simply generates the following code ...
self.FileMgr &= access:Phrase self.KeyName &= PHR:KeyPhrase self.FieldName &= PHR:Phrase
The code needs to be BEFORE the parent call.
It was necessary to over-ride the whole EditText class, as in ABC the EditText declares and calls the TextWindow class from a method that is private. |