mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
* compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
* overload wxEVT_ERASE_BACKGROUND, to reduce flicker * use wxBORDER_THEME for custom controls * tweaked style of GalleryList a tiny bit git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1558 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -92,6 +92,7 @@ class GalleryList : public wxPanel {
|
||||
void onChar(wxKeyEvent& ev);
|
||||
void onFocus(wxFocusEvent&);
|
||||
void onPaint(wxPaintEvent&);
|
||||
void onEraseBackground(wxEraseEvent&) {}
|
||||
void onSize(wxSizeEvent&);
|
||||
void onScroll(wxScrollWinEvent&);
|
||||
void OnDraw(DC& dc);
|
||||
@@ -133,7 +134,7 @@ class GalleryList : public wxPanel {
|
||||
void sendEvent(WXTYPE type);
|
||||
|
||||
static const int MARGIN = 1; // margin between items (excluding border)
|
||||
static const int BORDER = 1; // border aroung items
|
||||
static const int BORDER = 0; // border around items
|
||||
static const int SPACING = MARGIN + 2*BORDER; // distance between items
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user