Use wxBitmapBundle in wxPropertyGridManager

wxBitmapBundle can be used in wxPropertyGridManager to pass images
to the toolbar.
This commit is contained in:
Artur Wieczorek
2021-11-14 19:16:00 +01:00
parent 91402a0de8
commit 12af82ca38
3 changed files with 141 additions and 18 deletions

View File

@@ -244,8 +244,8 @@ public:
A label for the page. This may be shown as a toolbar tooltip etc.
@param bmp
Bitmap image for toolbar. If wxNullBitmap is used, then a built-in
default image is used.
Bitmap bundle for toolbar. If it is null then a built-in default
bitmap bundle is used.
@param pageObj
wxPropertyGridPage instance. Manager will take ownership of this
@@ -258,7 +258,7 @@ public:
switching. Otherwise toolbar buttons might not be added properly.
*/
wxPropertyGridPage* AddPage( const wxString& label = wxEmptyString,
const wxBitmap& bmp = wxPG_NULL_BITMAP,
const wxBitmapBundle& bmp = wxBitmapBundle(),
wxPropertyGridPage* pageObj = NULL );
/**
@@ -402,8 +402,8 @@ public:
A label for the page. This may be shown as a toolbar tooltip etc.
@param bmp
Bitmap image for toolbar. If wxNullBitmap is used, then a built-in
default image is used.
Bitmap bundle for toolbar. If it is null then a built-in default
bitmap bundle is used.
@param pageObj
wxPropertyGridPage instance. Manager will take ownership of this
@@ -412,7 +412,7 @@ public:
@return Returns pointer to created page.
*/
virtual wxPropertyGridPage* InsertPage( int index, const wxString& label,
const wxBitmap& bmp = wxNullBitmap,
const wxBitmapBundle& bmp = wxBitmapBundle(),
wxPropertyGridPage* pageObj = NULL );
/**