mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
@@ -25,6 +25,10 @@ wxSize CardViewer::DoGetBestSize() const {
|
||||
}
|
||||
}
|
||||
|
||||
void CardViewer::onChange() {
|
||||
Refresh(false);
|
||||
}
|
||||
|
||||
void CardViewer::onPaint(wxPaintEvent&) {
|
||||
wxBufferedPaintDC dc(this);
|
||||
dc.BeginDrawing();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user