ImageValueViewer now works and the viewer control is refreshed

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@55 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-27 22:55:40 +00:00
parent 7192361c36
commit 275f715463
6 changed files with 13 additions and 3 deletions
+4
View File
@@ -25,6 +25,10 @@ wxSize CardViewer::DoGetBestSize() const {
}
}
void CardViewer::onChange() {
Refresh(false);
}
void CardViewer::onPaint(wxPaintEvent&) {
wxBufferedPaintDC dc(this);
dc.BeginDrawing();
+2
View File
@@ -23,6 +23,8 @@ class CardViewer : public wxControl, public DataViewer {
/// Return the desired size of control
virtual wxSize DoGetBestSize() const;
virtual void onChange();
private:
DECLARE_EVENT_TABLE();