Add new api for appending a separator to the thumbnail toolbar.

Actually, when calling AppendSeparator we are appending a disable
ThumbBarButton without background, which can simulate the behavior
of appending a separator.

Author: Chaobin Zhang

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2014-09-10 14:52:55 +00:00
parent 4c08974648
commit dd06fa3aa8
5 changed files with 36 additions and 9 deletions

View File

@@ -279,21 +279,30 @@ public:
Inserts the given button before the position pos to the taskbar
thumbnail toolbar.
@note The number of buttons is limited to 7.
@note The number of buttons and separators is limited to 7.
@see AppendThumbBarButton()
@see AppendThumbBarButton(), AppendSeparatorInThumbBar()
*/
virtual bool InsertThumbBarButton(size_t pos, wxThumbBarButton *button);
/**
Adds a button to the taskbar thumbnail toolbar.
Appends a button to the taskbar thumbnail toolbar.
@note The number of buttons is limited to 7.
@note The number of buttons and separators is limited to 7.
@see InsertThumbBarButton()
@see InsertThumbBarButton(), AppendSeparatorInThumbBar()
*/
virtual bool AppendThumbBarButton(wxThumbBarButton *button);
/**
Appends a separator to the taskbar thumbnail toolbar.
@note The number of buttons and separators is limited to 7.
@see AppendThumbBarButton(), InsertThumbBarButton()
*/
virtual bool AppendSeparatorInThumbBar();
/**
Removes the thumbnail toolbar button from the taskbar button but doesn't
delete the associated c++ object.