diff --git a/include/nana/gui/widgets/combox.hpp b/include/nana/gui/widgets/combox.hpp index 03f319d9..fb58c5b6 100644 --- a/include/nana/gui/widgets/combox.hpp +++ b/include/nana/gui/widgets/combox.hpp @@ -230,5 +230,15 @@ namespace nana void _m_caption(nana::string&&) override; nana::any * _m_anyobj(std::size_t pos, bool alloc_if_empty) const override; }; + + namespace dev + { + template<> + struct widget_traits + { + using event_type = drawerbase::combox::combox_events; + using scheme_type = ::nana::widgets::skeletons::text_editor_scheme; + }; + } } #endif diff --git a/include/nana/gui/widgets/listbox.hpp b/include/nana/gui/widgets/listbox.hpp index b9680983..adb435ec 100644 --- a/include/nana/gui/widgets/listbox.hpp +++ b/include/nana/gui/widgets/listbox.hpp @@ -556,5 +556,15 @@ By \a clicking on a header the list get \a reordered, first up, and then down al drawerbase::listbox::category_t* _m_at_key(std::shared_ptr); void _m_ease_key(nana::detail::key_interface*); }; + + namespace dev + { + template<> + struct widget_traits + { + using event_type = drawerbase::listbox::listbox_events; + using scheme_type = drawerbase::listbox::scheme; + }; + } }//end namespace nana #endif diff --git a/include/nana/gui/widgets/textbox.hpp b/include/nana/gui/widgets/textbox.hpp index 9f5f7552..bf8a972d 100644 --- a/include/nana/gui/widgets/textbox.hpp +++ b/include/nana/gui/widgets/textbox.hpp @@ -193,5 +193,16 @@ namespace nana void _m_caption(::nana::string&&) override; void _m_typeface(const paint::font&) override; }; + + namespace dev + { + /// Traits for widget classes + template<> + struct widget_traits + { + using event_type = drawerbase::textbox::textbox_events; + using scheme_type = ::nana::widgets::skeletons::text_editor_scheme; + }; + } }//end namespace nana #endif diff --git a/source/gui/programming_interface.cpp b/source/gui/programming_interface.cpp index 8979c61f..7330d4d9 100644 --- a/source/gui/programming_interface.cpp +++ b/source/gui/programming_interface.cpp @@ -158,7 +158,6 @@ namespace API iwd->expr_colors = wdg_colors; } - widget_colors* get_scheme(window wd) { auto iwd = reinterpret_cast(wd);