A taskbar button that associated with the window under Windows 7 or later.
More...
#include <wx/taskbarbutton.h>
A taskbar button that associated with the window under Windows 7 or later.
It is used to access the functionality including thumbnail representations, thumbnail toolbars, notification and status overlays, and progress indicators.
- Note
- This class is only created and initialized in the internal implementation of wxFrame by design. You can only get the pointer of the instance which associated with the frame by calling wxFrame::MSWGetTaskBarButton().
Availability: only available for the
wxMSW port.
- See also
- wxFrame::MSWGetTaskBarButton()
- Since
- 3.1.0
◆ AppendSeparatorInThumbBar()
| virtual bool wxTaskBarButton::AppendSeparatorInThumbBar |
( |
| ) |
|
|
virtual |
◆ AppendThumbBarButton()
◆ Hide()
| virtual void wxTaskBarButton::Hide |
( |
| ) |
|
|
virtual |
◆ InsertThumbBarButton()
| virtual bool wxTaskBarButton::InsertThumbBarButton |
( |
size_t | pos, |
|
|
wxThumbBarButton * | button ) |
|
virtual |
◆ PulseProgress()
| virtual void wxTaskBarButton::PulseProgress |
( |
| ) |
|
|
virtual |
Makes the progress indicator run in indeterminate mode.
The first call to this method starts showing the indeterminate progress indicator if it hadn't been shown yet.
Call SetProgressRange(0) to stop showing the progress indicator.
◆ RemoveThumbBarButton() [1/2]
Removes the thumbnail toolbar button from the taskbar button but doesn't delete the associated c++ object.
- Parameters
-
| id | The identifier of the thumbnail toolbar button to remove. |
- Returns
- A pointer to the button which was detached from the taskbar button.
◆ RemoveThumbBarButton() [2/2]
Removes the thumbnail toolbar button from the taskbar button but doesn't delete the associated c++ object.
- Parameters
-
| button | The thumbnail toolbar button to remove. |
- Returns
- A pointer to the button which was detached from the taskbar button.
◆ SetOverlayIcon()
| virtual void wxTaskBarButton::SetOverlayIcon |
( |
const wxIcon & | icon, |
|
|
const wxString & | description = wxString() ) |
|
virtual |
Set an overlay icon to indicate application status or a notification top the user.
- Parameters
-
| icon | This should be a small icon, measuring 16x16 pixels at 96 dpi. If an overlay icon is already applied to the taskbar button, that existing overlay is replaced. Setting with wxNullIcon to remove. |
| description | The property holds the description of the overlay for accessibility purposes. |
◆ SetProgressRange()
| virtual void wxTaskBarButton::SetProgressRange |
( |
int | range | ) |
|
|
virtual |
Starts showing a determinate progress indicator.
Call SetProgressValue() after this call to update the progress indicator.
If range is 0, the progress indicator is dismissed.
◆ SetProgressState()
◆ SetProgressValue()
| virtual void wxTaskBarButton::SetProgressValue |
( |
int | value | ) |
|
|
virtual |
Update the progress indicator, setting the progress to the new value .
- Parameters
-
| value | Must be in the range from 0 to the argument to the last SetProgressRange() call. When it is equal to the range, the progress bar is dismissed. |
◆ SetThumbnailClip()
| virtual void wxTaskBarButton::SetThumbnailClip |
( |
const wxRect & | rect | ) |
|
|
virtual |
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
- Parameters
-
| rect | The portion inside of the window. Setting with an empty wxRect will restore the default display of the thumbnail. |
◆ SetThumbnailContents()
| virtual void wxTaskBarButton::SetThumbnailContents |
( |
const wxWindow * | child | ) |
|
|
virtual |
Selects the child window area to display as that window's thumbnail in the taskbar.
◆ SetThumbnailTooltip()
| virtual void wxTaskBarButton::SetThumbnailTooltip |
( |
const wxString & | tooltip | ) |
|
|
virtual |
Specifies or updates the text of the tooltip that is displayed when the mouse pointer rests on an individual preview thumbnail in a taskbar button flyout.
◆ Show()
| virtual void wxTaskBarButton::Show |
( |
bool | show = true | ) |
|
|
virtual |
The documentation for this class was generated from the following file: