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
5acbbf548e
refactoring and fix
...
fix a potential dead-lock caused by timer
2019-07-10 04:25:00 +08:00
Jinhao
8a0475c98c
refactor text_renderer
2019-06-20 04:35:29 +08:00
Jinhao
f274ff4c4c
Merge branch 'develop' of https://github.com/beru/nana into beru-develop
2019-04-16 23:39:40 +08:00
Jinhao
f697f4c338
uses std::chrono
2019-04-16 03:54:16 +08:00
beru
a596c7f64e
fix typos
2019-04-14 14:49:01 +09:00
Jinhao
64899a3d6a
add functions to menubar for auto-close when mouse leave
2017-08-28 21:09:04 +08:00
Jinhao
ec9ec611b4
refactor drawing of shortkey underline
2017-08-27 10:32:56 +08:00
Jinhao
7b12dafb19
fix crash where select menu command using keyboard( #237 )
2017-08-03 05:42:32 +08:00
Jinhao
e7e7b5336d
fix issue of menu::item_proxy::checked
...
menu::item_proxy::checked has different behavior with menu::checked
2017-05-07 17:45:06 +08:00
Jinhao
cbf76a312a
refactor menu for menu::insert that would break internal states
2017-05-06 07:24:21 +08:00
Jinhao
017630b22a
fix issue that menu wouldn't close window when destructs the menu
2017-05-06 04:40:49 +08:00
Jinhao
bbaf599272
remove member type menu::item_type
2017-05-04 06:10:54 +08:00
Jinhao
4e42c18815
implement key_press support for menu in Linux
2017-02-10 08:09:08 +08:00
Jinhao
168842e2cf
fix escape of menu
2017-02-07 05:35:30 +08:00
Jinhao
f11c54e513
fix position issue on Linux
2017-01-30 18:12:50 +08:00
Jinhao
238e85756f
new item::insert to add an item at specified pos
2017-01-19 06:27:54 +08:00
Jinhao
043ebad317
fix some compiler errors and warnings
2016-10-31 06:36:03 +08:00
Jinhao
b1ce0eaff2
Merge branch 'hotfix-1.4.1' into develop
2016-10-31 06:21:41 +08:00
Jinhao
445f0ed6de
fix issue of menu item_proxy
2016-10-31 04:33:42 +08:00
Jinhao
47b2234932
fix wrong pr number.
2016-10-16 07:11:40 +08:00
Jinhao
57aa0498b3
some modifications for pr( #154 )
...
update contributor info
2016-10-16 07:07:44 +08:00
dankan1890
d7b7a4d45f
listbox:
...
Added header_fgcolor and item_highlighted to color scheme.
menu:
Added change_text function.
2016-10-14 01:14:55 +02:00
Jinhao
eed3ffd5b6
Merge branch 'hotfix-1.4' into develop
2016-08-11 02:27:45 +08:00
Jinhao
9b28c96e9b
code refine
2016-08-11 02:26:47 +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
dankan1890
6fbc4a7988
Fixed the behavior of disabled items in the menus when scrolling with the arrows keys.
2016-08-01 03:20:07 +02:00
Jinhao
34cca34773
fix the behaviour of clicking menu disabled item
2016-07-26 07:32:50 +08:00
Jinhao
8c7051566c
optimize binary size
2016-07-01 23:43:48 +08:00
Jinhao
2f9056cc7a
Merge branch 'hotfix-1.3' into develop
2016-06-10 17:08:48 +08:00
Jinhao
a30eef53ec
fix bug that menu_popuper doesn't popup a menu
2016-05-12 23:34:40 +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
6a5623f098
fix menu shortkey underline issue
2016-04-15 20:38:35 +08:00
Jinhao
397096f60e
add contribution information
2016-01-31 22:38:39 +08:00
Jinhao
780805484e
Merge branch 'hotfix-1.2.2' into develop
2016-01-31 22:07:08 +08:00
kmribti
90b8e23674
Fix for menu images
...
Stretch menu image (icons) only when don't fit, center it otherwise.
2016-01-23 18:50:02 +01:00
Jinhao
a2a7d1fc37
remove deprecated components
2016-01-03 17:50:10 +08:00
Jinhao
0bb7c788d5
Merge branch 'develop' into prepare-utf8
2016-01-03 14:18:03 +08:00
Jinhao
a42ebe19b4
use UTF-8 for string representation
2015-12-31 01:09:52 +08:00
Jinhao
48254b6555
use UTF-8 for string representation
2015-12-29 01:26:19 +08:00
Jinhao
3856543daf
fix wrong position of sub menu
2015-12-22 23:47:56 +08:00
Jinhao
c86a00bea5
remove macro STR
2015-11-29 22:38:22 +08:00
Jinhao
12358a5dc0
change some APIs for accepting utf8
2015-11-27 01:54:26 +08:00
Jinhao
42443dcafd
remove paint::gadget
2015-08-20 01:09:29 +08:00
Jinhao
396163c1b7
fix mouse left button issues due to breaking changes
2015-07-28 00:00:15 +08:00
Jinhao
b1ed1f0452
Merge branch 'hotfixes-1.0.2' into develop
...
Conflicts:
include/nana/gui/detail/basic_window.hpp
include/nana/gui/widgets/listbox.hpp
source/gui/detail/linux_X11/bedrock.cpp
source/gui/detail/win32/bedrock.cpp
source/gui/detail/window_layout.cpp
source/gui/detail/window_manager.cpp
source/gui/widgets/listbox.cpp
source/gui/widgets/toolbar.cpp
2015-07-11 13:35:22 +08:00
Jinhao
c245ae8296
fix menu behavioral issues and a menubar delay_restore issue
...
don't delay_restore when arrow keys is pressed
2015-06-29 07:31:51 +08:00
Jinhao
e479689946
fix a crash error which is caused by the focus of submenu( #65 )
2015-06-25 01:32:54 +08:00