Added header_fgcolor and item_highlighted to color scheme.
menu:
Added change_text function.
This commit is contained in:
dankan1890
2016-10-14 01:14:55 +02:00
parent 8fe39df8b4
commit d7b7a4d45f
4 changed files with 11 additions and 3 deletions

View File

@@ -1158,6 +1158,11 @@ namespace nana
impl_->mbuilder.data().items.at(index).image = img;
}
void menu::change_text(std::size_t index, const std::string& text)
{
impl_->mbuilder.data().items.at(index).text = text;
}
bool menu::link(std::size_t index, menu& menu_obj)
{
if(impl_->mbuilder.set_sub_menu(index, menu_obj.impl_->mbuilder.data()))