1335 Commits

Author SHA1 Message Date
Jinhao
dbfcab912d fix and improve animation(#335) 2020-05-12 03:11:34 +08:00
Jinhao
baa64a1461 fix animation deadlock issues(#530) 2020-05-08 09:19:57 +08:00
Jinhao
cf71da94c4 fix issue that grayscale jpeg can't be shwon 2020-04-30 04:16:35 +08:00
Jinhao
e09b57ca12 fix compiler errors using C++11 2020-04-18 04:34:59 +08:00
Jinhao
d3e3e59812 open image file using file format signature instead of file extension 2020-04-18 02:59:12 +08:00
Jinhao
1f1e9e47f5 Merge branch 'LilyWangL-Lily' into hotfix-1.7.3 2020-04-07 05:56:45 +08:00
Jinhao
bdc64b2c8a fix arabic reshaping issues 2020-04-01 05:11:55 +08:00
Jinhao
78a6ad6344 fix issue that output of glyph pixel is wrong 2020-03-27 07:35:58 +08:00
Jinhao
419d615505 listbox::hovered now returns absolute position
fix related issue #528
2020-03-27 07:28:48 +08:00
Jinhao
c9b9451443 add partial support of Arabic reshaping on Linux 2020-03-26 01:41:32 +08:00
Jinhao
48d54faeed fix textbox rendering issue
wrong background color for selected text of RTL languges
2020-03-24 22:14:08 +08:00
Jinhao
1597c62aa1 add supports of Hebrew and Arabic languages for unicode 2020-03-24 22:10:35 +08:00
Jinhao
25fe4506fd fix some GCC compilation issues 2020-03-14 01:31:52 +08:00
Jinhao
e8668dbc52 fix place bug that splitter position drifts(#512) 2020-03-13 10:09:55 +08:00
Jinhao
8d5e5a0962 add support of RLE8 compressed BMP format(#515) 2020-03-12 23:01:51 +08:00
wangli28
fd524e9b5e Modify to include<stdexcept> 2020-03-03 13:11:06 +00:00
wangli28
b41e9ee913 Include<ostream> in datetime.cpp 2020-02-17 10:45:09 +00:00
Jinhao
f26d3d0d6c fix issue that wrong caret position in textbox when moving up/down 2020-02-13 15:01:19 +08:00
Jinhao
75d760266a fix issue scrolling in nested_form causes freezing(#505) 2020-02-13 11:56:35 +08:00
Jinhao
cfad078740 fix compiler error on VS2015 2020-02-11 06:13:10 +08:00
Jinhao
f9c0de9698 fix compiler error on VS2015 2020-02-11 05:49:56 +08:00
Jinhao
4090eb3d75 Merge branch 'hotfix-1.7.2' into develop 2020-02-08 07:32:40 +08:00
besh81
add0af843e added treebox use_entire_line mode
Added new interaction/display mode to treebox control.
Enabling use_entire_line the entire line of the treebox/child is used for mouse interactions and display purposes.
2020-02-07 13:06:34 +01:00
Jinhao
fa659df705 Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2020-02-06 01:34:42 +08:00
ErrorFlynn
ff7fca9311
fix: submenu option items unresponsive to clicks
When the user opens a submenu containing items with the style `menu::checks::option` and clicks an option, the radio button logic doesn't work. This bug was discovered and fixed by nanapro.org forum user "huycan" (I'm just submitting the PR). See this forum post: http://nanapro.org/en-us/forum/index.php?u=/topic/1256/ggleave-a-menu-open

As mentioned in more detail in the forum post linked above, my understanding of why this happens is that `menu_builder::checked` fails because the `menu_window` of the submenu is created with the `menu_builder` object used by the parent menu.
2020-02-03 02:49:20 -05:00
Jinhao
1a91511d64 refactor
make it more readable
2020-01-29 01:29:42 +08:00
Jinhao
462aadcc26 hide treebox node expander if no visible children
improve the new feature based on PR#500
2020-01-28 23:29:10 +08:00
mixael
aa2bfaebaa treebox - allow treebox node to be hidden 2020-01-23 01:27:08 +03:00
qPCR4vir
dd72ef8fbd Merge remote-tracking branch 'origin/minor_change' into minor_change 2019-12-06 01:30:48 +01:00
qPCR4vir
f88224766d doxy comments, void form::div(std::string div_text); 2019-12-06 01:27:58 +01:00
qPCR4vir
514ebaf426 FIX #469, #492 ? 2019-12-05 13:03:09 +01:00
qPCR4vir
d362f031dd listbox header: ignore auto_draw ??
changing column visibility - too slow.
2019-12-05 00:28:08 +01:00
Jinhao
dbf6a7eeba Merge branch 'hotfix-1.7.2' into develop 2019-12-05 03:58:50 +08:00
qPCR4vir
3d00b7c589 comments
(cherry picked from commit 3b57bd0a1f2375ec88e57298276242edaf611b9e)
2019-12-03 19:10:26 +01:00
qPCR4vir
4b7facebdf fix conditional compilations in filesystem 2019-12-03 19:10:07 +01:00
Jinhao
0ab4225262 Merge branch 'hotfix-1.7.2' into develop 2019-12-04 01:13:44 +08:00
Jinhao
d2ce5fafd2 Merge branch 'filesystem' of https://github.com/qPCR4vir/nana into qPCR4vir-filesystem 2019-12-04 01:09:55 +08:00
Jinhao
139c884ea9 Merge branch 'fix-tabbar-erase-refresh' of https://github.com/mihaizh/nana into mihaizh-fix-tabbar-erase-refresh 2019-12-04 00:27:17 +08:00
Jinhao
36a17566ca Merge branch 'ErrorFlynn-hotfix-1.7' into hotfix-1.7.2 2019-11-17 01:24:19 +08:00
Jinhao
6353a1909b Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-11-17 01:23:50 +08:00
qPCR4vir
bd70254223 using std filesystem 2019-11-05 21:08:28 +01:00
qPCR4vir
a8b5e92947 using nana filesystem 2019-11-05 21:00:33 +01:00
qPCR4vir
3eee1f76b9 inline nana::filesystem 2019-11-05 19:43:01 +01:00
ErrorFlynn
6c547276ec
bug fix: nana::drawerbase::listbox::essence::where
This method incorrectly calculates the position of checkboxes in the listbox content area. It uses the formula `new_where.second * item_h + header_visible_px()` to calculate the number of pixels between the top of the viewport and a checkbox.

The problem is that when the first visible item is only partially visible, `new_where.second * item_h` produces an excess of pixels equal to the vertical segment of the first visible item that is not in the viewport. This excess value produces a downward displacement of the calculated checkbox position, so it must be accounted for in the aforementioned formula.

This problem occurs because at some point, the library switched from scrolling in item-sized increments to smooth scrolling (in older versions, it used to be that it was impossible for an item to be only partially visible).

Relevant thread: http://nanapro.org/en-us/forum/index.php?u=/topic/1227/ggnana-listbox-with-a-check-box-for-each-list-item#post-3359
2019-10-05 11:19:42 -04:00
Jinhao
45ff4634ad Merge branch 'hotfix-1.7.2' into develop 2019-09-27 08:05:23 +08:00
Jinhao
2234d06bea fix issue graphics::gradual_rectangle off by one(#475) 2019-09-23 01:47:36 +08:00
ErrorFlynn
59d3a68485
item_proxy bug fix: postfix increment operator
The behavior of the postfix increment operator is not consistent with the increment operator concept (currently just returns the next sibling node).
2019-09-20 23:38:09 -04:00
Zaha Mihai
35dadaeab6
Fix tabbar drawing not updated when tab is erased
When a tab is deleted using `tabbar::erase`, `trigger::erase` is called. This function does not call `API::refresh_window` if the tab was erased successfully (unlike `trigger::tab_color`, `trigger::tab_image`, etc.), thus the tab is still visible until an interaction is made (like mouse click on `tabbar`).
2019-09-15 23:32:58 +03:00
Jinhao
2c54714646 fix crash that could occur when calling pixel_buffer::put with rgb24 2019-09-12 05:34:49 +08:00
Jinhao
a65eec2bb9 Merge branch 'hotfix-1.7.2' into develop 2019-09-11 00:54:47 +08:00