diff --git a/uppsrc/CtrlLib/Bar.cpp b/uppsrc/CtrlLib/Bar.cpp index 5af96413c..0cdfd099b 100644 --- a/uppsrc/CtrlLib/Bar.cpp +++ b/uppsrc/CtrlLib/Bar.cpp @@ -229,6 +229,7 @@ Bar::Item& Bar::Item::Text(const char *text) { return *this; } Bar::Item& Bar::Item::Key(dword key) { return *this; } Bar::Item& Bar::Item::Repeat(bool b) { return *this; } Bar::Item& Bar::Item::Image(const UPP::Image& img) { return *this; } +Bar::Item& Bar::Item::Bold(bool bold) { return *this; } Bar::Item& Bar::Item::Enable(bool _enable) { return *this; } Bar::Item& Bar::Item::Tip(const char *tip) { return *this; } Bar::Item& Bar::Item::Help(const char *help) { return *this; } diff --git a/uppsrc/CtrlLib/Bar.h b/uppsrc/CtrlLib/Bar.h index d5ade6cbf..610fcdf1e 100644 --- a/uppsrc/CtrlLib/Bar.h +++ b/uppsrc/CtrlLib/Bar.h @@ -57,6 +57,7 @@ public: virtual Item& Check(bool check); virtual Item& Radio(bool check); virtual Item& Enable(bool _enable = true); + virtual Item& Bold(bool bold = true); virtual Item& Tip(const char *tip); virtual Item& Help(const char *help); virtual Item& Topic(const char *topic); diff --git a/uppsrc/CtrlLib/MenuImp.h b/uppsrc/CtrlLib/MenuImp.h index 1a8c8ff8b..cb3cefef7 100644 --- a/uppsrc/CtrlLib/MenuImp.h +++ b/uppsrc/CtrlLib/MenuImp.h @@ -17,6 +17,7 @@ public: virtual Bar::Item& Description(const char *desc); virtual Bar::Item& Check(bool check); virtual Bar::Item& Radio(bool check); + virtual Bar::Item& Bold(bool bold); virtual String GetDesc() const; virtual dword GetAccessKeys() const; diff --git a/uppsrc/CtrlLib/MenuItem.cpp b/uppsrc/CtrlLib/MenuItem.cpp index 1dd4827e6..e726c50f5 100644 --- a/uppsrc/CtrlLib/MenuItem.cpp +++ b/uppsrc/CtrlLib/MenuItem.cpp @@ -70,6 +70,12 @@ Bar::Item& MenuItemBase::Radio(bool check) return *this; } +Bar::Item& MenuItemBase::Bold(bool bold) +{ + font.Bold(bold); + return *this; +} + Bar::Item& MenuItemBase::Tip(const char *s) { return *this; diff --git a/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp b/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp index 3f088d92d..d6cd95931 100644 --- a/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp +++ b/uppsrc/CtrlLib/src.tpp/Bar$en-us.tpp @@ -266,6 +266,11 @@ resembling Switch.&] [s2; Enables the item (default is enabled).&] [s3; &] [s4;%- &] +[s5;:Bar`:`:Item`:`:Bold`(bool`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& +]_[* Bold]([@(0.0.255) bool]_[*@3 bold]_`=_[@(0.0.255) true])&] +[s2; Sets bold text to menu item [%-*@3 bold].&] +[s3; &] +[s4;%- &] [s5;:Bar`:`:Item`:`:Tip`(const char`*`):%- [@(0.0.255) virtual] [_^Bar`:`:Item^ Item][@(0.0.255) `& ]_[* Tip]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 tip])&] [s2; Adds a tooltip to the ToolBar item.&]