fix caret and tab switch on invisible widgets(#62)

This commit is contained in:
Jinhao
2015-06-15 22:31:03 +08:00
parent 2d1a347116
commit 7dae086162
6 changed files with 77 additions and 51 deletions

View File

@@ -63,6 +63,17 @@ namespace nana
arg.window_handle = reinterpret_cast<window>(wd);
if (emit(event_code::expose, wd, arg, false, get_thread_context()))
{
if (wd->together.caret)
{
if (exposed)
{
if (wd->root_widget->other.attribute.root->focus == wd)
wd->together.caret->visible(true);
}
else
wd->together.caret->visible(false);
}
if (!exposed)
{
if (category::flags::root != wd->other.category)