Appendix E: Obsolete commands
version 11 (Modified)
Several commands and functions found in previous versions of 4D Write have been replaced starting in version 6.5 with new routines that are more powerful and that make use of the new functionalities of the plug-in. In order to ensure the compatibility of previous applications and to permit developers to progressively update their code, these obsolete commands have been kept temporarily (prefixed by the letter 'O'). However, their use in new developments is not recommended.
Beginning with version 11 of 4D Write, these commands will no longer appear in the lists of plug-in commands. Their maintenance will no longer be ensured in future versions. From now on, it is strongly recommended to systematically replace these commands in your code with the new commands or to use alternative functions.
The table below lists the obsolete commands and indicates the alternative provided in the current version of 4D Write.
Obsolete command | Alternatives to be used |
WR O DISPLAY SCROLLBARS | WR SET DOC PROPERTY |
WR O ON MENU | WR ON COMMAND |
WR O DISPLAY RULER | WR SET DOC PROPERTY |
WR O DISPLAY MENUBAR | WR SET DOC PROPERTY |
WR O Get page | WR GET CURSOR POSITION |
WR O Is Hyphen | WR SELECT |
WR O PICTURE TO AREA | WR PICTURE TO AREA |
WR O Find | WR Find |
WR O EXPERT COMMAND | WR LOCK COMMAND |
WR O CREATE STYLESHEET | WR Create stylesheet |
WR O MOVE PICTURE | Using alignment attributes (left,right, center) or setting |
the margins of paragraphs to move the picture and the | |
new commands for working with pictures. | |
WR O DO COMMAND | WR EXECUTE COMMAND |
WR O TEXT ALIGNMENT | WR SET TEXT PROPERTY |
WR O SET ATTRIBUTES | WR SET FONT |
WR O LINE SPACING | WR SET TEXT PROPERTY |
WR O SET MARGINS | WR SET TEXT PROPERTY |
WR O SET PACK OPTIONS | WR SET DOC PROPERTY |
WR SET AREA PROPERTY | |
WR O OPTIONS | WR SET AREA PROPERTY |
WR O SET PREFERENCES | WR SET DOC PROPERTY |
WR O SET TABS | WR SET TAB |
WR O RESIZE PICTURE | WR SET PICTURE SIZE |
WR O Area to picture | WR Area to picture |
WR O Picture to offscreen area | WR New offscreen area |
WR O INSERT HYPHEN | WR EXECUTE COMMAND |
WR O INSERT PICTURE | WR INSERT PICTURE |
WR O Get ScrollBars | WR Get doc property |
WR O GET ATTRIBUTES | WR Get font |
WR O GET STYLESHEET | WR GET STYLESHEET INFO |
WR O GET PICTURE | WR GET PICTURE SIZE |
WR O GET MARGINS | WR Get text property |
WR O Get pack options | WR Get doc property |
WR O GET PREFERENCES | WR Get doc property |
WR O GET RULER | WR Get text property |
WR O GET TABS | WR GET TAB |
WR O SET STYLESHEET | WR SET STYLESHEET INFO |
WR O CHANGE STYLE | WR SET TEXT PROPERTY |
WR O Font name | Use 4D commands. |
WR O Count Stylesheet | WR Count |
WR O Page number | WR INSERT PAGE NUMBER |
WR O Font number | Use 4D commands. |
WR O COMPUTE NOW | WR EXECUTE COMMAND |
WR O Replace | WR Replace |
WR O AUTO SAVE | WR Area to picture |
WR O STATISTICS | WR Count |
WR O MENU STATUS | WR GET COMMAND INFO |
WR O REMOVE HYPHEN | WR SELECT |
WR DELETE SELECTION | |
WR O DELETE STYLESHEET | WR DELETE STYLESHEET |
WR O STRUCTURE ACCESS | WR LOCK COMMAND |
WR O Save to picture | WR Area to picture |
See Also