mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-07 18:44:54 -06:00
MenuBar: Bold option (thanks Tom1)
git-svn-id: svn://ultimatepp.org/upp/trunk@6784 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9da5742400
commit
93d9be1dd2
5 changed files with 14 additions and 0 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.&]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue