1320 Commits

Author SHA1 Message Date
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
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
Jinhao
0bd0c1f362 Merge branch 'hotfix-1.7.2' of https://github.com/qPCR4vir/nana into qPCR4vir-hotfix-1.7.2 2019-09-11 00:51:03 +08:00
Jinhao
7082456330 Merge branch 'hotfix-1.7.2' of https://github.com/besh81/nana into besh81-hotfix-1.7.2 2019-09-11 00:46:39 +08:00
Jinhao
0f66b0cb26 improve wait of x11 event to avoid blocking 2019-09-11 00:10:11 +08:00
Jinhao
02676e9c75 fix missing weakly_canonical on GCC 7.3 2019-09-11 00:07:07 +08:00
qPCR4vir
d47a7c55bb document it 2019-09-10 14:57:49 +02:00
qPCR4vir
74f42f1778 new feature "fit_width_to_header caption text" for a new header with width=0
(cherry picked from commit 23efa5088d742a48e7ad07f273e84bcf50c2d979)
2019-09-09 19:56:57 +02:00
qPCR4vir
06ba591b66 FIX old bug during resizing of header, when next column spring to second position 2019-09-09 17:23:22 +02:00
besh81
4dd1c0c7ef dock_pane and toolbar bug fix
fixed bug in dock_pane caption drawing function (used a workaround that hide the caption when the dock_pane width become too small)
fixed small bug in toolbar
2019-09-05 17:37:40 +02:00
Jinhao
12e15ce956 Merge branch 'fix_filebox_multi_select' of https://github.com/mihaizh/nana into mihaizh-fix_filebox_multi_select 2019-09-02 05:27:01 +08:00
Jinhao
66d038dbe3 small improvement 2019-09-02 05:24:06 +08:00
Jinhao
fbeb8caf1f Merge branch 'dnso86-patch-wc2mb' of https://github.com/dnso86/nana into dnso86-dnso86-patch-wc2mb 2019-09-02 05:03:03 +08:00
Zaha Mihai
7c442360ba
Fix inconsistency regarding filebox multi_select
When only one file is selected, the lpstrFile variable contains only the path to that file, without the parent path before that, thus, the targets vector is empty and the path variable contains the actual path to the file. This is inconsistent with the scenario where multiple files are selected, in which targets contains the file paths and path contains the parent directory path.
2019-09-01 17:53:23 +03:00
Jinhao
8323064efc improve the timer that it can be deleted in elapse handler 2019-09-01 18:49:19 +08:00
dnso86
6d625a11e0
Fixing incorrect buffer in MultiByteToWideChar call in wc2mb 2019-08-30 14:27:49 +02:00
dnso86
942c6a4b48
Fixing incorrect buffer in WideCharToMultiByte call in wc2mb 2019-08-28 10:42:10 +02:00