735 Commits

Author SHA1 Message Date
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
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
ErrorFlynn
b7a0874428
fixed bug: listbox::sort_col doesn't update view
Calling listbox::sort_col to change the sort column doesn't update the viewport to reflect the change, forcing the user to call API::refresh_window or otherwise perform stupid tricks to force the listbox to refresh.
2019-08-20 05:32:36 -04:00
ErrorFlynn
69e559f657
fixed a bug in trigger::dbl_click()
impl_->set_expanded() was called unconditionally, even if the node had no children. This caused the node icon to change to the "expanded" icon if the node had an icon scheme, even when the node didn't have children.
2019-08-11 20:27:16 -04:00
ErrorFlynn
1b0ac10475
fixes for the listbox bugs described in issue #472 2019-08-05 14:11:02 -04:00
ErrorFlynn
d845a82dc4
fixed another listbox selection bug
a display position was searched for in a set of absolute positions
2019-07-06 14:18:24 -04:00
ErrorFlynn
417071e4b5
fix for selection bug described in issue #448 2019-06-03 17:51:21 -04:00
ErrorFlynn
4e3641ed88
fix for issue #428 2019-05-05 11:13:08 -04:00
ErrorFlynn
c5b38f3643
bug: second parameter of category_icon() is rvalue reference 2019-04-18 17:12:31 -04:00
ErrorFlynn
b7ddcd7d3a
fix for issue #420 2019-04-15 13:00:04 -04:00
Jinhao
d931ebb61c filter out the middle and right button for item selection(#413) 2019-04-10 00:41:04 +08:00
Jinhao
7ba93f2164 add contribution description 2019-03-14 06:31:52 +08:00
ErrorFlynn
68d01ffe70
fix: tooltip window doesn't have tree scheme & typeface (issue #405)
The treebox tooltip window is not initialized with the treebox scheme, which causes a crash in color_proxy::operator color(). Additionally, the tooltip window also uses a default font.
2019-03-12 15:58:01 -04:00
Jinhao
2470848fba Merge branch 'hotfix-1.6.2' into develop-1.7 2019-03-09 21:54:57 +08:00
Jinhao
2abae1dd68 refactoring 2019-03-08 06:11:21 +08:00
ErrorFlynn
fd8261c6a2
fix for issue #399 2019-03-07 04:36:27 -05:00
Jinhao
0a3fb34e09 use std::filesystem::path instead of std::string 2019-03-07 01:10:02 +08:00
beru
b286ced6ba fix compile error 2019-02-24 10:29:34 +09:00
beru
46ad9fd9f3 Fix ctrl + end key handling, pos.y member should be calculated with _m_coordinate_to_caret method. 2019-02-24 09:53:36 +09:00
Jinhao
e89ee5d18b some improvements
improved resizing performance
removed frame widget
refactoring
2019-02-16 00:55:02 +08:00
Jinhao
bbc39906c0 remove deprecated code and debug code 2019-02-15 06:27:17 +08:00
besh81
56065bb2b8 fixed listbox scheme.header_padding_top use 2019-02-06 11:35:33 +01:00
Jinhao
85c2bdbd75 small changes 2019-02-02 00:31:56 +08:00
Jinhao
7f12b76e08 Merge branch 'hotfix-1.6.2' into develop-1.7 2019-02-02 00:26:52 +08:00
Jinhao
fb8ade6557 some modifications to #357 and #383 2019-01-31 07:08:45 +08:00
Jinhao
8a020dbc88 Merge branch 'develop-1.7' of https://github.com/besh81/nana into besh81-develop-1.7 2019-01-29 04:30:13 +08:00
Jinhao
f63cfce5cd Merge branch 'resort_column_range' of https://github.com/qPCR4vir/nana into qPCR4vir-resort_column_range 2019-01-27 23:45:46 +08:00
Jinhao
3e9b08c0cc fix issue that reverse box selection works incorrectly
new bug from develop-1.7
2019-01-27 06:14:21 +08:00
Jinhao
e057724f98 new method is_single_enabled for listbox 2019-01-21 23:51:45 +08:00
besh81
91dfaa5d7e added treebox scheme 2019-01-21 11:37:35 +01:00
besh81
a71e02b5f2 adding treebox scheme 2019-01-19 15:04:19 +01:00
Jinhao
5935ce2036 fix bug that listbox item automatically deselected
item automatically are deselected when release mouse after mouse
selection(develop-1.7)
2019-01-19 03:09:52 +08:00
Ariel Vina-Rodriguez
9a52336645
typos 2019-01-18 11:09:16 +01:00
Jinhao
fb2075651a Merge branch 'hotfix-1.6.2' of https://github.com/JamesBremner/nana into JamesBremner-hotfix-1.6.2 2019-01-17 07:36:46 +08:00
James Bremner
26c28ae4be Slider value handles -ve values by clipping to zero
see http://nanapro.org/en-us/forum/index.php?u=/topic/1092/ggslider-value-range
2019-01-16 16:43:05 -05:00
James Bremner
02d082959f Merge branch 'hotfix-1.6.2' of https://github.com/cnjinhao/nana into hotfix-1.6.2 2019-01-16 16:38:20 -05:00
besh81
4c3455648f spinbox: if not editable keep prefix and suffix when gain focus 2019-01-08 17:31:39 +01:00
Jinhao
96f62a7b08 fix bug that text_editor::text use \n\r as end of line 2019-01-06 08:29:43 +08:00
Jinhao
e963c29646 fix crash occurs when switch between radio button to checkbox(#375) 2019-01-04 21:58:48 +08:00
Jinhao
88294ed9fb Merge branch 'hotfix-1.6.2' into develop-1.7 2018-12-29 07:18:03 +08:00
Jinhao
345d65f6c9 add caption background mode for group 2018-12-29 07:08:49 +08:00
Jinhao
bed829fa26 fix bug that line alorithm wrongly draws a line when fade_rate is zero 2018-12-29 06:38:46 +08:00
James Bremner
4a101c333a Merge remote-tracking branch 'upstream/hotfix-1.6.2' into hotfix-1.6.2 2018-12-18 17:09:16 -05:00
James Bremner
1d2c7f85f4 Partial implementation of missing nana::typeface() 2018-12-18 17:05:45 -05:00
besh81
36095c9190 fix disabled checkbox square
disabled checkbox square now looks like disabled textbox
In addition found an unused instruction in text_editor.cpp: could be replaced or removed (or left as it is :) )
2018-12-14 12:38:06 +01:00
Jinhao
7e1714f73f Merge branch 'hotfix-1.6.2' of https://github.com/JamesBremner/nana into JamesBremner-hotfix-1.6.2 2018-12-14 07:21:58 +08:00
Jinhao
93df609520 fix bug that label renders an additional endline(#365) 2018-12-14 07:14:04 +08:00
Jinhao
186b76e765 improve filebox appearance on Linux 2018-12-13 06:43:11 +08:00
Jinhao
a2cda83019 refactor shared_icons 2018-12-12 00:39:54 +08:00
Jinhao
43d85b300a fix a label's bug in wrap mode 2018-12-12 00:23:06 +08:00