$doctitle = "Automatic Edit Mode"; $authname = "Lance Leonard"; $versions = "Applies to: All Versions"; $postdate = "12 July 2000"; $pagearea = 2; $audience = "1"; $navlinks = 'Paradox'; $metakeys = "paradox for windows, borland paradox, corel paradox, paradox, pdoxwin, objectpal, object, pal, form, auto, automatic, edit, editing, memoview, memo, view"; $metadesc = "Describes how to automatically enter Memo View when the user selects a Memo field."; ?> include( $DOCUMENT_ROOT . "/lib/pageinit.php" ); ?>
Answer: Yes! Add the following code to your memo field object's setFocus() event:
self.postAction( editEnterMemoView ) self.postAction( moveEnd ) ; Move to end of memo.
This tells Paradox to add two events to any additional processing that it's currently performing. The first simulates pressing F2 by triggering the action that happens when you press F2 manually. The second event moves the cursor to the last character in the memo. (While this isn't strictly necessary, many users appreciate the extra help.)
Actions are internal events that Paradox uses to process events that can be generated in various means, e.g. by keyboard shortcuts, menu commands, and as side-effects of other user interaction. One key to creating easy to use Paradox applications lies in understand the actions Paradox uses to process events. You can provide a great deal of convenience and customization by using ObjectPAL to control how Paradox responds to various actions. For more information, see the Actions, Events, and built-in event methods topic in the ObjectPAL Reference Help file.
include( $DOCUMENT_ROOT . "/lib/pagecomp.php" ); ?>