Commit Graph

238 Commits

Author SHA1 Message Date
cbf4d62a9c richmemo: updating Cocoa component to use the new CocoaTextEdits unit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6551 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-07-08 03:45:40 +00:00
9df1d93d35 richmemo: win32 - cleanup warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6526 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-25 02:12:35 +00:00
b66e16bb76 richmemo: cleanup warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6525 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-25 02:11:10 +00:00
5bba58fa30 richmemo: cocoa, fix memory use
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6474 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-08 02:57:29 +00:00
430b047031 richmemo: cocoa, cleanup memory use to prevent crashes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6473 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-08 02:53:04 +00:00
7f3cb8ed40 cocoa: finally fixing cocoa compilation issue
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6305 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-14 20:10:21 +00:00
8d5997b3e3 richmemo: extending linkaction information with linkRef
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6290 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-05 03:41:09 +00:00
da14f07b40 richmemo: adding link setting code richedit 41 and earlier
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6289 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-05 01:11:55 +00:00
26520b92c9 richmemo: prevent win32 scrolling on changing text attributes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5974 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-07 18:01:02 +00:00
a7d192079f richmemo: temporary workaround to prevent scrolling on style change
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-06 20:49:49 +00:00
e66ef65444 richmemo: win32 smooth scroller (instead of Win32CustomMemo per-line scroller)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5969 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-06 20:19:51 +00:00
49a8f3acb3 richmemo: Qt5 implementation by Zeljan Rikalo, #31426
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5845 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-04-30 02:29:35 +00:00
d9a05ba0b9 richmemo: implementing Redo and CanRedo for Win32
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5844 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-04-30 02:22:02 +00:00
b50c32d866 richmemo: win32 fix the issue with not returning background color. Addressing some compiler warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5836 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-04-14 05:25:07 +00:00
f75e49b2fd richmemo: win32 fix the regerssion in getting sub text
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5708 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-26 18:29:39 +00:00
5f6efe8bb8 richmemo: based on the patch by Andrey Korol (#30618), receiving ZoomFactor from widgetset (if hot keys were used to zoom the editor, w/o notifications to LCL). Win32 implementation added.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5306 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-03 15:25:28 +00:00
936d249789 richmemo: modified patch by Silvio Clécio (#30852). (removed the use of Default() intrinsic, since it's not available in FPC 2.6.4. It's also a responsibility of GetTextAttributes function to fully initialized TFontParams structure).
* added SaveRTFFile function to utilities
* modified IDE RTF editor to allow saving a file

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5305 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-03 15:04:42 +00:00
1bdb92bd6e richmemo: removing TWinLangOptions from the unit interface, due to issues with x64 compilation. The type has not been used by anyone yet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5295 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-27 13:05:30 +00:00
5fa536c9b9 richmemo: win32 - defaulting richedit manager, so it is still used for custom RichEdit classes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5290 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-24 18:20:17 +00:00
2b957acf3f richmemo: win32 - allow a custom richedit class to be specified
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5289 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-24 14:37:05 +00:00
9315166222 richmemo: win32 - making language options exposed as a set type for win32 only interface
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5288 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-24 14:27:30 +00:00
0f1c8da837 richmemo: win32 win32richmemoole should be considered as a part of the package
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5220 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 03:33:00 +00:00
98caf0bcec richmemo: win32 - restoring the context menu functioning, based on the patch by Andrey Korol
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5219 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 03:32:16 +00:00
a41ce36cb5 richmemo: win32 modified object resizing approach to prevent objects leaks
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5196 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-21 17:59:34 +00:00
9953b56cdf richmemo: win32 adding InsertInlineFlags to give control over how inline objects are inserted
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5163 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-15 03:21:46 +00:00
7d3b69a48e richmemo: win32 ole utility functions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-15 03:14:17 +00:00
052a7a2ad1 richmemo: win32, assigning IRichMemoOLECallback object on RichMemo creation.
The object would generate storages for incoming OLE object (needed for WinXP machines to load RTF embedded objects).
based on the sample by engkin

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5159 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-14 13:28:09 +00:00
2123ae7101 richmemo: win32 + holding selection direction for GetXXX operations (that are strictly selection based).
reduce the number of redundant OnChange events, only call them on real event happening.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5117 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-02 03:25:11 +00:00
df60a80341 richmemo: updating search method to return the length of the found text (for cases, where found text could be different than a searched one. I.e. Hebrew or Arabic scripts)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5115 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-31 15:59:03 +00:00
093d31e8f1 richmemo: fix in scrollbars styles selection for win32. (non Auto- scrollbars would now be disabled instead of disappeared)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5090 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-15 02:13:23 +00:00
e24cdc8732 richmemo: fix in default color selection
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5089 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-13 21:33:47 +00:00
35516cee58 richmemo: saving fRTF on DestroyHandle event to follow LCL requirements about properties being available with/without window Handle
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5068 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-02 16:07:29 +00:00
84084e84f5 richmemo: wrap SetRangeParams range changes into BeginUpdate/EndUpdate. Making sure that no updates would be visibile as well as refreshing by the end of the change
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5059 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-01 03:22:44 +00:00
267efe922d richmemo: speed up range style selection by comparing flag to initalStyle rather than all supported styles
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5050 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-29 19:01:40 +00:00
58c9433aa1 richmemo: always update the selection to make the "SelStart" at the minimal character position, when detecting styles
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5049 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-29 18:47:08 +00:00
6529e73b50 richmemo: Undo prev commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4971 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 22:50:44 +00:00
b533087c00 richmemo: Fix compilation with Laz trunk
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 22:43:59 +00:00
2c44f1f616 RichMemo: fix compile with latest lazarus - utf8
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4950 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 07:01:05 +00:00
7ed46a00bc richmemo: carbon - trigger selection change event, if changed via code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4624 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-20 03:51:06 +00:00
16f014853b richmemo: carbon - implementing selection change event. The only way seems possible, by tracking selection before and after mouse/keyboard event. Todo: check if the event is fired, if selection is changed by code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4623 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-20 03:37:36 +00:00
b4e560af5a richmemo: carbon, initializing wordwrap and border values, similar to TMemo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4621 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-15 01:05:05 +00:00
51a647988c richmemo: win32, remove the limitation to default (32K or 64K) characters, when MaxLength of RichMemo is set to 0. The issue reported by TraumTaenzerDieter on the forum.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4617 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-12 00:44:04 +00:00
2988db35f3 richmemo: gtk2 links support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4605 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-03 00:01:57 +00:00
e1ee689c1c richmemo: gtk2 missing links implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4604 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-02 21:08:08 +00:00
2084eccb79 richmemo: prevent $OBJECTCHECKS (-CR) on RichMemo units
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4600 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-25 13:53:06 +00:00
5d05fb1959 richmemo: the best code practice
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4588 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-24 13:09:58 +00:00
d5f2adb382 richmemo: default search engine
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4587 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-24 12:56:23 +00:00
312917e49c richmemo: workaround for SelStart not scrolling into the memo view. Activated with compiling the package with -dRMCARBONSELSTART option
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4584 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-23 02:05:57 +00:00
5f7b4e338a richmemo: add mlparse example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4534 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-08 14:50:21 +00:00
5804937f58 richmemo: win32 fix style selection on internal change.
modified Internal change. Only allow if styles is fully modified.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4526 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-29 04:48:34 +00:00