Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
de541224
Commit
de541224
authored
Dec 30, 2010
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to reduce flicker by override EVT_ERASE_BACKGROUND
parent
cb8e37be
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
0 deletions
+4
-0
src/gui/about_window.cpp
src/gui/about_window.cpp
+1
-0
src/gui/about_window.hpp
src/gui/about_window.hpp
+1
-0
src/gui/welcome_window.cpp
src/gui/welcome_window.cpp
+1
-0
src/gui/welcome_window.hpp
src/gui/welcome_window.hpp
+1
-0
No files found.
src/gui/about_window.cpp
View file @
de541224
...
...
@@ -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
...
...
src/gui/about_window.hpp
View file @
de541224
...
...
@@ -54,6 +54,7 @@ class HoverButtonBase : public wxControl {
void
onKeyDown
(
wxKeyEvent
&
);
void
onKeyUp
(
wxKeyEvent
&
);
void
onPaint
(
wxPaintEvent
&
);
void
onEraseBackground
(
wxEraseEvent
&
)
{}
protected:
bool
hover
,
focus
,
mouse_down
,
key_down
;
...
...
src/gui/welcome_window.cpp
View file @
de541224
...
...
@@ -144,6 +144,7 @@ BEGIN_EVENT_TABLE(WelcomeWindow, wxFrame)
EVT_BUTTON
(
ID_FILE_RECENT
,
WelcomeWindow
::
onOpenLast
)
EVT_BUTTON
(
ID_FILE_CHECK_UPDATES
,
WelcomeWindow
::
onCheckUpdates
)
EVT_PAINT
(
WelcomeWindow
::
onPaint
)
EVT_ERASE_BACKGROUND
(
WelcomeWindow
::
onEraseBackground
)
// EVT_IDLE ( WelcomeWindow::onIdle)
END_EVENT_TABLE
()
...
...
src/gui/welcome_window.hpp
View file @
de541224
...
...
@@ -41,6 +41,7 @@ class WelcomeWindow : public Frame {
void
onNewSet
(
wxCommandEvent
&
);
void
onOpenLast
(
wxCommandEvent
&
);
void
onCheckUpdates
(
wxCommandEvent
&
);
void
onEraseBackground
(
wxEraseEvent
&
)
{}
// void onIdle (wxIdleEvent& ev);
/// Close the welcome window, and show the given set
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment