tree control uses 16x16 pixels, explicitly request this size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1513,7 +1513,9 @@ void wxFileIconsTable::Create()
|
|||||||
m_smallImageList = new wxImageList(16, 16);
|
m_smallImageList = new wxImageList(16, 16);
|
||||||
|
|
||||||
// folder:
|
// folder:
|
||||||
m_smallImageList->Add(wxArtProvider::GetBitmap(wxART_FOLDER, wxART_CMN_DIALOG));
|
m_smallImageList->Add(wxArtProvider::GetBitmap(wxART_FOLDER,
|
||||||
|
wxART_CMN_DIALOG,
|
||||||
|
wxSize(16, 16)));
|
||||||
// folder_open
|
// folder_open
|
||||||
m_smallImageList->Add(wxIcon(file_icons_tbl_folder_open_xpm));
|
m_smallImageList->Add(wxIcon(file_icons_tbl_folder_open_xpm));
|
||||||
// computer
|
// computer
|
||||||
@@ -1527,11 +1529,15 @@ void wxFileIconsTable::Create()
|
|||||||
// removeable
|
// removeable
|
||||||
m_smallImageList->Add(wxIcon(file_icons_tbl_removeable_xpm));
|
m_smallImageList->Add(wxIcon(file_icons_tbl_removeable_xpm));
|
||||||
// file
|
// file
|
||||||
m_smallImageList->Add(wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_CMN_DIALOG));
|
m_smallImageList->Add(wxArtProvider::GetBitmap(wxART_NORMAL_FILE,
|
||||||
|
wxART_CMN_DIALOG,
|
||||||
|
wxSize(16, 16)));
|
||||||
// executable
|
// executable
|
||||||
if (GetIconID(wxEmptyString, _T("application/x-executable")) == file)
|
if (GetIconID(wxEmptyString, _T("application/x-executable")) == file)
|
||||||
{
|
{
|
||||||
m_smallImageList->Add(wxArtProvider::GetBitmap(wxART_EXECUTABLE_FILE, wxART_CMN_DIALOG));
|
m_smallImageList->Add(wxArtProvider::GetBitmap(wxART_EXECUTABLE_FILE,
|
||||||
|
wxART_CMN_DIALOG,
|
||||||
|
wxSize(16, 16)));
|
||||||
delete m_HashTable->Get(_T("exe"));
|
delete m_HashTable->Get(_T("exe"));
|
||||||
m_HashTable->Delete(_T("exe"));
|
m_HashTable->Delete(_T("exe"));
|
||||||
m_HashTable->Put(_T("exe"), new wxFileIconEntry(executable));
|
m_HashTable->Put(_T("exe"), new wxFileIconEntry(executable));
|
||||||
|
Reference in New Issue
Block a user