RichMemo/Defines: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | The following defines are used within the component. You can use those to fix the compilation on your Lazarus setup. | |
| 2 | 2 | ||
| 3 | 3 | Each define is prefixed with "RM" (which stands for Rich Memo). This is used | |
| 4 | 4 | ||
| 5 | 5 | ## Reference | |
| 6 | 6 | ||
| 7 | 7 | RMLCL18 | |
| 8 | 8 | the defines indicates that the RichMemo is built with Lazarus 1.8 (or earlier). | |
| 9 | 9 | ||
| 10 | 10 | It was introduced to resolve the compilation of RichMemo for Cocoa widgetset. In Lazarus 2.0 the Cocoa units were rearranged. | |
| 11 | 11 | ||
| 12 | 12 | RMCARBONSELSTART | |
| 13 | 13 | the define changes how SetSelStart works for RichMemo. On each selection a notification OnSelection change needs to be fired. | |
| 14 | 14 | ||
| 15 | 15 | ## Adding a Define | |
| 16 | 16 | ||
| 17 | 17 | - Open up RichMemo package | |
| 18 | 18 | - select "Options" | |
| 19 | 19 | - select "Custom options" under "Compiler Options" | |
| 20 | 20 | - in the Custom options enter a define, prefxied with "-d". For example, if you need RMLCL18 define then you should type in: | |
| 21 | 21 | ||
| 22 | - | ||
| 22 | + | ```text | |
| 23 | + | -dRMLCL18 | |
| 24 | + | ``` | |
| 23 | 25 | ||
| 24 | 26 | if you need multiple defines, separate them with space | |
| 25 | 27 | ||
| 26 | - | ||
| 28 | + | ```text | |
| 29 | + | -dRMLCL18 -dRMCARBONSELSTART | |
| 30 | + | ``` | |
| 27 | 31 | ||
| 28 | 32 | ## See Also | |
| 29 | 33 | ||
| 30 | 34 | - [[RichMemo]] | |
| 31 | 35 | ||
| 32 | 36 | --- | |
| 33 | 37 | *From the Free Pascal wiki, page "RichMemo/Defines", as it stood on 2018-11-10 after a change by Skalogryz, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 34 | 38 | Category: RichMemo |
