To make it clear in the sample that a custom animation is used, use wxSHOW_EFFECT_BLEND instead of SLIDE_TO_BOTTOM, and add a text '(custom animaton)'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -504,7 +504,7 @@ protected:
|
|||||||
wxWindow* win = GetPopupWindow();
|
wxWindow* win = GetPopupWindow();
|
||||||
win->SetSize(rect);
|
win->SetSize(rect);
|
||||||
win->Raise(); // This is needed
|
win->Raise(); // This is needed
|
||||||
win->ShowWithEffect(wxSHOW_EFFECT_SLIDE_TO_BOTTOM);
|
win->ShowWithEffect(wxSHOW_EFFECT_BLEND);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -743,8 +743,10 @@ MyFrame::MyFrame(const wxString& title)
|
|||||||
//
|
//
|
||||||
|
|
||||||
rowSizer = new wxBoxSizer( wxHORIZONTAL );
|
rowSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
rowSizer->Add( new wxStaticText(panel,wxID_ANY,wxT("List View wxComboCtrl:")), 1,
|
rowSizer->Add( new wxStaticText(panel,
|
||||||
wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
|
wxID_ANY,
|
||||||
|
"List View wxComboCtrl (custom animation):"),
|
||||||
|
1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
|
||||||
rowSizer->Add( new wxStaticText(panel,wxID_ANY,wxT("Tree Ctrl wxComboCtrl:")), 1,
|
rowSizer->Add( new wxStaticText(panel,wxID_ANY,wxT("Tree Ctrl wxComboCtrl:")), 1,
|
||||||
wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
|
wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
|
||||||
colSizer->Add( rowSizer, 0, wxEXPAND|wxALL, 5 );
|
colSizer->Add( rowSizer, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
Reference in New Issue
Block a user