83 Commits

Author SHA1 Message Date
이지한
129b83e68f fix the strange behavior of Korean ime composition window.
Because Hangul is a combination character, WM_IME_STARTCOMPOSITION is only called once when the IME input is started, so the position of the composition window is strange.

Therefore, I solved the problem by controlling the state of characters combined using WM_IME_COMPOSITION and WM_IME_CHAR.

We have also improved to support other IME languages such as Chinese and Japanese.
2019-08-01 15:24:46 +09:00
beru
a596c7f64e fix typos 2019-04-14 14:49:01 +09:00
Jinhao
2abae1dd68 refactoring 2019-03-08 06:11:21 +08:00
Jinhao
0a3fb34e09 use std::filesystem::path instead of std::string 2019-03-07 01:10:02 +08:00
Eduardo Roeder
7651b430eb Added select_points method 2018-11-03 14:58:53 -03:00
Jinhao
852aa698ed Merge branch 'hotfix-1.6.1' into develop 2018-08-28 07:36:51 +08:00
Jinhao
e1992fb0d4 fix crash when drawing in text_changed event with new line inserted(#332) 2018-08-26 16:42:53 +08:00
rbrugo
e08bb0bfe1 New textbox::getline returning an optional<string> 2018-07-08 12:35:14 +02:00
Jinhao
a9f23e2503 Merge branch 'develop-c++17' into develop 2018-06-04 02:29:55 +08:00
Jinhao
216cb786e7 various fixes
fixed compiler warnings
fixed bad overridings
fixed FreeBSD support
2018-05-22 14:22:58 +08:00
Jinhao
0c7e8a8ca2 add scroll_operation_interface 2018-04-21 03:49:15 +08:00
Jinhao
5f77c73aaa no throw() 2017-12-19 03:30:38 +08:00
Mexsut
dcb472cb06 add a native wstring version textbox::append
added a textbox::append which accepts texts in std::wstring
2017-09-25 15:20:38 +08:00
Jinhao
27e1d7aff5 add textbox::content_origin 2017-07-25 07:57:48 +08:00
Jinhao
822a762804 fix bug that textbox::caret_pos() doesn't move the caret 2017-07-16 21:42:24 +08:00
Jinhao
a7bfc61007 fix bug that text_editor wouldn't reset scrollbar when paste 2017-07-16 11:26:28 +08:00
Oleg Smolsky
e8755e6283 Added Windows-style mouse double-click to the textbox
- the word under cursor is selected with double-click now
 - tested in both editable and read-only modes

This addresses #226.
2017-07-12 10:46:45 -07:00
Jinhao
74dedb9506 add noexcept 2017-06-18 10:10:30 +08:00
Jinhao
b5db21567f add new methods to textbox for line count 2017-06-18 05:08:51 +08:00
Jinhao
bd38e96ed7 fix issue that textbox&spinbox don't update immediately 2017-06-08 00:44:27 +08:00
Jinhao
f261fa296e highlight certain lines in a textbox(#194) 2017-04-15 11:13:32 +08:00
Jinhao
6cbf721f9d improve all widgets for bground effects 2017-04-11 07:06:43 +08:00
Jinhao
d34806353e add support of text align to text_editor/textbox 2017-01-25 19:18:54 +08:00
Jinhao
db2cb5e8d7 change text_editor for reducing binary size 2016-11-19 04:24:03 +08:00
Jinhao
edc8304c22 Merge branch 'hotfix-1.4' of https://github.com/PeterAddy960/nana into PeterAddy960-hotfix-1.4 2016-10-31 06:13:41 +08:00
PeterAddy960
8e84383a7b Added an overload to getline to allow an offset from the beginning of the line.
Added a clear undo method.
Added an overload to selected to get the selected bounds.
2016-10-28 00:17:59 -05:00
Jinhao
01ff1c11c1 fix bug that some events of textbox would not be triggered 2016-10-15 07:05:43 +08:00
Jinhao
4b58704161 fix issue when textbox::reset with no parameter 2016-10-01 10:07:13 +08:00
Jinhao
340c350fcb Merge branch 'hotfix-1.4' into develop 2016-09-24 09:58:44 +08:00
Jinhao
c916d0ace3 add textbox::set_undo_queue_length
a new method for setting the undo queue length
2016-09-22 08:03:30 +08:00
Jinhao
422f2c768b add a method to textbox
a method to get bounds of a text selection
2016-09-12 00:01:12 +08:00
Jinhao
d6cb631bc2 add a method to show caret for the uneditable textbox
When an uneditable textbox has a caret, user can select the text and copy
it.
2016-09-03 07:46:43 +08:00
Jinhao
cf99551924 fix bug when an invalid pos for textbox.move_caret 2016-08-27 09:40:49 +08:00
Jinhao
b13f0a4ce5 fix textbox caret_pos issue 2016-08-27 05:23:25 +08:00
Jinhao
6e86b6ae6c refine code
fix bug that listbox may throw std::runtime when the modal is enabled
fix bug that textbox attachs a wrong event angent
2016-08-10 01:46:13 +08:00
Jinhao
df68cfa3ad a bool param to determines whether the caret move to end of text 2016-05-10 15:52:06 +08:00
Jinhao
116787072f Merge branch 'hotfix-1.3' into develop 2016-04-18 15:16:03 +08:00
Jinhao
42990b8670 move lazy_refresh() from namespace API to API::dev 2016-04-17 17:46:19 +08:00
Jinhao
07b5b19545 improve stability of event 2016-04-10 15:23:44 +08:00
Jinhao
6b1cba1357 enable/disable tab when textbox is switched between single/multi-line 2016-03-29 01:22:34 +08:00
Jinhao
6b6b527007 eliminate -Wextra and -pedantic warnings 2016-03-15 15:46:28 +08:00
Jinhao
569eb49a5c fix and improve the internal handle of focus change
enhanced textbox behavior of focus change
2016-02-27 02:02:29 +08:00
Jinhao
a839cf8deb optimize generated binary size 2016-02-19 00:49:32 +08:00
Jinhao
818136a18a remove useless included headers in textbox.cpp 2016-01-22 00:55:23 +08:00
Jinhao
325961a277 remove utf8_cast functions 2016-01-22 00:46:10 +08:00
Jinhao
a42ebe19b4 use UTF-8 for string representation 2015-12-31 01:09:52 +08:00
Jinhao
2ca11d4e25 fix compile errors under Linux 2015-12-16 01:21:44 +08:00
Jinhao
c260eebbc3 use UTF-8 for string representation 2015-12-15 21:46:24 +08:00
Jinhao
112deadd16 elimiate nana::string for listbox 2015-12-10 00:24:31 +08:00
Jinhao
e8266b5ae8 add native_string_type for internal use 2015-12-03 01:49:44 +08:00