mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
redraw on resize
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@225 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -171,6 +171,10 @@ void GalleryList::OnDraw(DC& dc) {
|
||||
}
|
||||
}
|
||||
|
||||
void GalleryList::onSize(wxSizeEvent&) {
|
||||
update();
|
||||
}
|
||||
|
||||
void GalleryList::sendEvent(WXTYPE type) {
|
||||
wxCommandEvent ev(type, GetId());
|
||||
ProcessEvent(ev);
|
||||
@@ -183,4 +187,5 @@ BEGIN_EVENT_TABLE(GalleryList, wxScrolledWindow)
|
||||
EVT_LEFT_DCLICK (GalleryList::onLeftDClick)
|
||||
EVT_CHAR (GalleryList::onChar)
|
||||
EVT_PAINT (GalleryList::onPaint)
|
||||
EVT_SIZE (GalleryList::onSize)
|
||||
END_EVENT_TABLE ()
|
||||
|
||||
@@ -59,6 +59,7 @@ class GalleryList : public wxScrolledWindow {
|
||||
void onLeftDClick(wxMouseEvent& ev);
|
||||
void onChar(wxKeyEvent& ev);
|
||||
void onPaint(wxPaintEvent&);
|
||||
void onSize(wxSizeEvent&);
|
||||
void OnDraw(DC& dc);
|
||||
|
||||
/// Find the item corresponding to the given location
|
||||
|
||||
Reference in New Issue
Block a user