New border element
This commit is contained in:
@@ -61,9 +61,6 @@ namespace nana{ namespace drawerbase {
|
||||
|
||||
editor_ = new text_editor(wd, graph, dynamic_cast<::nana::widgets::skeletons::text_editor_scheme*>(scheme));
|
||||
editor_->textbase().set_event_agent(evt_agent_.get());
|
||||
editor_->border_renderer([this](graph_reference graph, const ::nana::color& clr){
|
||||
this->_m_draw_border(graph, clr);
|
||||
});
|
||||
|
||||
_m_text_area(graph.width(), graph.height());
|
||||
|
||||
@@ -178,16 +175,6 @@ namespace nana{ namespace drawerbase {
|
||||
editor_->text_area(r);
|
||||
}
|
||||
}
|
||||
|
||||
void drawer::_m_draw_border(graph_reference graph, const ::nana::color& bgcolor)
|
||||
{
|
||||
if (!API::widget_borderless(widget_->handle()))
|
||||
{
|
||||
nana::rectangle r(graph.size());
|
||||
graph.rectangle(r, false, (status_.has_focus ? ::nana::color(0x05, 0x95, 0xE2) : ::nana::color(0x99, 0x9A, 0x9E)));
|
||||
graph.rectangle(r.pare_off(1), false, bgcolor);
|
||||
}
|
||||
}
|
||||
//end class drawer
|
||||
}//end namespace textbox
|
||||
}//end namespace drawerbase
|
||||
|
||||
Reference in New Issue
Block a user