mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Inheriting CardViewer from wxPanel was causing problems with the focus
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1146 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -20,7 +20,7 @@ DEFINE_EVENT_TYPE(EVENT_SIZE_CHANGE);
|
||||
// ----------------------------------------------------------------------------- : CardViewer
|
||||
|
||||
CardViewer::CardViewer(Window* parent, int id, long style)
|
||||
: wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, style & wxNO_BORDER ? style : style | wxSUNKEN_BORDER)
|
||||
: wxControl(parent, id, wxDefaultPosition, wxDefaultSize, style)
|
||||
, up_to_date(false)
|
||||
{}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ DECLARE_EVENT_TYPE(EVENT_SIZE_CHANGE, <not used>)
|
||||
// ----------------------------------------------------------------------------- : CardViewer
|
||||
|
||||
/// A control to view a single card
|
||||
class CardViewer : public wxPanel, public DataViewer {
|
||||
class CardViewer : public wxControl, public DataViewer {
|
||||
public:
|
||||
CardViewer(Window* parent, int id, long style = 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user