fix state images after changing their style (see #9591)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -123,6 +123,13 @@ public:
|
||||
void SetAlternateStates(bool show) { m_alternateStates = show; }
|
||||
bool AlternateStates() const { return m_alternateStates; }
|
||||
|
||||
void ResetBrokenStateImages()
|
||||
{
|
||||
const size_t count = GetStateImageList()->GetImageCount();
|
||||
int state = count > 0 ? count - 1 : wxTREE_ITEMSTATE_NONE;
|
||||
DoResetBrokenStateImages(GetRootItem(), 0, state);
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual int OnCompareItems(const wxTreeItemId& i1, const wxTreeItemId& i2);
|
||||
|
||||
@@ -139,6 +146,9 @@ private:
|
||||
size_t depth,
|
||||
size_t folder);
|
||||
|
||||
void DoResetBrokenStateImages(const wxTreeItemId& idParent,
|
||||
wxTreeItemIdValue cookie, int state);
|
||||
|
||||
void LogEvent(const wxChar *name, const wxTreeEvent& event);
|
||||
|
||||
int m_imageSize; // current size of images
|
||||
|
Reference in New Issue
Block a user