| ECM Home PlusMemo Home Page PlusMemo evaluation packages What's new in v6.3c Upgrading from v5.3 Accessory components How to buy Registered users update page |
Upgrading from PlusMemo v5.3 and
before Introduction PlusMemo version 6 was a major rewrite over version 5. This was necessary due to many features being added on top of the base source code over the years. We used this opportunity to redefine certain identifiers so as to avoid conflicts with other often used libraries, and to conform more closely with current coding practices, which have evolved slightly since the beginning. Nonetheless, changes to your application code will probably be minimal. Previous design time properties have not changed, so dfm files will load correctly once you have updated to v6. One minor exception is that property StaticFormat has a new default value of False (previously True), which means you may have to explicitely return it to True if you want to use static formatting in PlusMemo v6. Design time installation As of v6.0, we have changed the name of ready made packages to avoid confusion with previous PlusMemo(U) files. When updating from version 5.3 or before, remove PMemo(U)PackX.bpl or .dpl from your design time environment before installing the new version (X stands for Delphi/CBuilder version number). Ensure that no older version of the component is in your library search path. The safest way to ensure this is to delete old PlusMemo(U) files from your hard disk. Unit reorganizations Unit names have not changed for either TPlusMemo or accessories, and most applications will compile unchanged. However the following applies: ---- New support unit: ---- If you use the following methods,
properties and types in your application, you will need to change them to avoid
"identifier not declared" compile time errors: Also, many type definitions used internally by TPlusMemo(U) have been moved to the new support unit. You may need to add PMSupport(U) to your uses clause if you used PlusMemo internal features, like TPlusNavigator(U). TExtFontStyles redefined In PlusMemo v5.3 and before, TExtFontStyles was defined as an extension of Delphi's TFontStyles. The extension concerned the addition of elements fsAltFont and fsHighlight to access the dual font and dual color features in TPlusMemo(U). This design provoked a lot of support and extensivity headaches, so it has been abandoned. TExtFontStyles is still defined in PlusMemo unit, but is equivalent to TFontStyles. fsAltFont and fsHighlight have been defined as integer constants that do not conflict with basic font style elements. A new enumerated type, TPlusFontStyles, has been defined that can be used to access the alternate font and color features. For example, to determine if property SelStyle includes member fsAltFont, typecast it to TPlusFontStyles like this: IsAltFont = fsAltFont in TPlusFontStyles(PlusMemo1.SelStyle); To specify alternate font for a keyword you define at run time, typecast a TPlusFontStyles variable to TFontStyles: var sStyle: TPlusFontStyles; |