input widgets keep focus when form/panel is clicked
see API::ignore_mouse_focus
This commit is contained in:
@@ -18,9 +18,10 @@ namespace nana
|
||||
namespace form
|
||||
{
|
||||
//class trigger
|
||||
void trigger::attached(widget_reference widget, graph_reference graph)
|
||||
void trigger::attached(widget_reference wdg, graph_reference graph)
|
||||
{
|
||||
wd_ = &widget;
|
||||
wd_ = &wdg;
|
||||
API::ignore_mouse_focus(wdg, true);
|
||||
}
|
||||
|
||||
void trigger::refresh(graph_reference graph)
|
||||
|
||||
@@ -20,10 +20,13 @@ namespace nana
|
||||
namespace panel
|
||||
{
|
||||
//class drawer
|
||||
void drawer::attached(widget_reference widget, graph_reference)
|
||||
void drawer::attached(widget_reference wdg, graph_reference)
|
||||
{
|
||||
widget.caption(STR("Nana Panel"));
|
||||
window_ = widget.handle();
|
||||
wdg.caption(STR("panel widget"));
|
||||
window_ = wdg.handle();
|
||||
|
||||
API::ignore_mouse_focus(wdg, true);
|
||||
|
||||
}
|
||||
|
||||
void drawer::refresh(graph_reference graph)
|
||||
|
||||
Reference in New Issue
Block a user