Sign in Join
Wiki copytemporary

RichMemo/Defines: what changed

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

Title: RichMemo/Defines

OldNewLine
1+The following defines are used within the component. You can use those to fix the compilation on your Lazarus setup.
2+
3+Each define is prefixed with "RM" (which stands for Rich Memo). This is used
4+
5+## Reference
6+
7+RMLCL18
8+the defines indicates that the RichMemo is built with Lazarus 1.8 (or earlier).
9+
10+It was introduced to resolve the compilation of RichMemo for Cocoa widgetset. In Lazarus 2.0 the Cocoa units were rearranged.
11+
12+RMCARBONSELSTART
13+the define changes how SetSelStart works for RichMemo. On each selection a notification OnSelection change needs to be fired.
14+
15+## Adding a Define
16+
17+- Open up RichMemo package
18+- select "Options"
19+- select "Custom options" under "Compiler Options"
20+- in the Custom options enter a define, prefxied with "-d". For example, if you need RMLCL18 define then you should type in:
21+
22+`-dRMLCL18`
23+
24+if you need multiple defines, separate them with space
25+
26+`-dRMLCL18 -dRMCARBONSELSTART`
27+
28+## See Also
29+
30+- [[RichMemo]]
31+
32+---
33+*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+Category: RichMemo

Back to history