Sign in Join
Wiki copytemporary

RichMemo/Defines: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11The following defines are used within the component. You can use those to fix the compilation on your Lazarus setup.
22
33Each define is prefixed with "RM" (which stands for Rich Memo). This is used
44
55## Reference
66
77RMLCL18
88the defines indicates that the RichMemo is built with Lazarus 1.8 (or earlier).
99
1010It was introduced to resolve the compilation of RichMemo for Cocoa widgetset. In Lazarus 2.0 the Cocoa units were rearranged.
1111
1212RMCARBONSELSTART
1313the define changes how SetSelStart works for RichMemo. On each selection a notification OnSelection change needs to be fired.
1414
1515## Adding a Define
1616
1717- Open up RichMemo package
1818- select "Options"
1919- select "Custom options" under "Compiler Options"
2020- in the Custom options enter a define, prefxied with "-d". For example, if you need RMLCL18 define then you should type in:
2121
22-`-dRMLCL18`
22+```text
23+-dRMLCL18
24+```
2325
2426if you need multiple defines, separate them with space
2527
26-`-dRMLCL18 -dRMCARBONSELSTART`
28+```text
29+-dRMLCL18 -dRMCARBONSELSTART
30+```
2731
2832## See Also
2933
3034- [[RichMemo]]
3135
3236---
3337*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).*
3438Category: RichMemo

Back to history