attempt to reduce flicker by override EVT_ERASE_BACKGROUND

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1571 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-12-30 23:32:43 +00:00
parent 05b753c7a1
commit 31377629c8
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -152,6 +152,7 @@ BEGIN_EVENT_TABLE(HoverButtonBase, wxControl)
EVT_KEY_DOWN (HoverButtonBase::onKeyDown)
EVT_KEY_UP (HoverButtonBase::onKeyUp)
EVT_MOUSE_CAPTURE_LOST(HoverButtonBase::onLoseCapture)
EVT_ERASE_BACKGROUND(HoverButtonBase::onEraseBackground)
END_EVENT_TABLE ()
// ----------------------------------------------------------------------------- : Button with image and hover effect