Commit Graph

211 Commits

Author SHA1 Message Date
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
15d43e4035 richmemo: fix compilation for LCL without 9x support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4468 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 14:40:29 +00:00
3e0fabe544 richmemo: efficient way of setting attributes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4377 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-12 20:20:41 +00:00
bf92d455f5 richmemo: extending support for links in win32
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4191 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-15 17:21:30 +00:00
51cb7240d2 richmemo: win32 fix for theme border drawing. #28269, based on the patch by Andrey Korol
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4190 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-15 16:52:31 +00:00
46386a0f37 richmemo: win32 clean up hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4155 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-27 01:42:13 +00:00
6ac1c63457 richmemo: win32 theme drawing. #21347. The implementation is based on the patch (by unknown contributor - see the bug tacker issue). But, thank you!
The way to override the implementation is provided. 

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4154 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-26 16:48:41 +00:00
8592b112fd richmemo: clean up win32 compiler hint messages
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4153 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-26 16:08:53 +00:00
4ccf6e7c15 richmemo: added CanPaste method and implementation for win32
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4149 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-25 01:01:12 +00:00
14ca948efd richmemo: change in the RTF property editor. If no text is specified - clear RTF property out.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4148 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-24 04:53:19 +00:00
915ba50653 richmemo: win32 setting RichEdit default font on WS SetFont method
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4147 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-24 04:51:16 +00:00
311e5c3d78 richmemo: gtk2 corrected the new name for tab alignment
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4143 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-19 10:29:03 +00:00
8bc9e1ffe7 richmemo: gtk2 fix the destruction of the handle to use proper DestroyLCLComponent() method
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4142 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-19 02:51:07 +00:00
e1182fc49d richmemo: renamed values of TTabAlignment from ta** to tab** to prevent name collision with Classes.TAlignment.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4140 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-18 12:16:18 +00:00
d245500ae0 richmemo: + added Qt support for set/get text attributes.
+ added implementation for Qt search() method

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4139 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-18 02:18:01 +00:00
3665dc7c3a richmemo: gtk2 imlpementation of CharAtPos
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4088 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-19 03:50:37 +00:00
a32406dc1d richmemo: added hittest (CharAtPos) example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4087 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-19 03:30:11 +00:00
8d29dccb15 richmemo: CharAtPos method
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4086 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-19 03:25:43 +00:00
1507632a55 richmemo: fixing the same typo as in previous rev for gtk2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4085 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-19 02:00:06 +00:00
fd5de1f0bf richmemo: fix typo in parameter name
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4084 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-19 01:53:20 +00:00
bb76adab15 richmemo: update link sample to be pure GUI application, properly name button captions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4078 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-06 03:11:57 +00:00
0fe137b895 richmemo: introduced GetText (GetUText). default and win32 implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4077 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-06 03:10:21 +00:00
04b7618b48 richmemo: links example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4076 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-06 00:59:39 +00:00
c208e3f4e9 richmemo: win32 unit uses clean up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4072 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-31 04:14:46 +00:00
792e773443 richmemo: add support for links (via textuiparams), added implementation for win32
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4071 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-31 04:14:22 +00:00
3ba32c21e3 richmemo: gtk2 implemented super and sub scripts
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4070 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-28 04:39:20 +00:00
d0aed3c85f richmemo: win32 cleanup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4069 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-27 13:52:25 +00:00
214b9bdbda richmemo: added support for subscript and superscript. win32 implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4068 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-27 13:52:05 +00:00