Show wxART_BUTTON icons in art provider sample resource browser.
The button icons have a different size from all the other clients in wxGTK so it may be interesting to see them in the sample, add wxART_BUTTON to the list of art clients that can be chosen in it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,12 +50,13 @@
|
||||
static void FillClients(wxChoice *choice)
|
||||
{
|
||||
ART_CLIENT(wxART_OTHER)
|
||||
ART_CLIENT(wxART_BUTTON)
|
||||
ART_CLIENT(wxART_TOOLBAR)
|
||||
ART_CLIENT(wxART_MENU)
|
||||
ART_CLIENT(wxART_FRAME_ICON)
|
||||
ART_CLIENT(wxART_CMN_DIALOG)
|
||||
ART_CLIENT(wxART_HELP_BROWSER)
|
||||
ART_CLIENT(wxART_MESSAGE_BOX)
|
||||
ART_CLIENT(wxART_MESSAGE_BOX) // Keep this last, it's the initial shown one
|
||||
}
|
||||
|
||||
static void FillBitmaps(wxImageList *images, wxListCtrl *list,
|
||||
@@ -164,7 +165,7 @@ wxArtBrowserDialog::wxArtBrowserDialog(wxWindow *parent)
|
||||
|
||||
SetSizerAndFit(sizer);
|
||||
|
||||
choice->SetSelection(6/*wxART_MESSAGE_BOX*/);
|
||||
choice->SetSelection(choice->GetCount() - 1);
|
||||
SetArtClient(wxART_MESSAGE_BOX);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user