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
7ed92370
Commit
7ed92370
authored
Dec 07, 2010
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to deal with mouse capture in DropDownList, still not entirely correct!
parent
42ed8813
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/gui/drop_down_list.cpp
src/gui/drop_down_list.cpp
+5
-4
No files found.
src/gui/drop_down_list.cpp
View file @
7ed92370
...
@@ -109,14 +109,15 @@ void DropDownList::show(bool in_place, wxPoint pos, RealRect* rect) {
...
@@ -109,14 +109,15 @@ void DropDownList::show(bool in_place, wxPoint pos, RealRect* rect) {
visible_start
=
0
;
visible_start
=
0
;
ensureSelectedItemVisible
();
ensureSelectedItemVisible
();
// show
// show
if
(
GetParent
()
->
HasCapture
())
{
// release capture on parent
// do this before showing the popup, because that might change who has the capture
GetParent
()
->
ReleaseMouse
();
}
if
(
selected_item
==
NO_SELECTION
&&
itemCount
()
>
0
)
selected_item
=
0
;
// select first item by default
if
(
selected_item
==
NO_SELECTION
&&
itemCount
()
>
0
)
selected_item
=
0
;
// select first item by default
mouse_down
=
false
;
mouse_down
=
false
;
close_on_mouse_out
=
false
;
close_on_mouse_out
=
false
;
Popup
();
Popup
();
if
(
isRoot
()
&&
GetParent
()
->
HasCapture
())
{
// release capture on parent
GetParent
()
->
ReleaseMouse
();
}
// fix drop down arrow
// fix drop down arrow
redrawArrowOnParent
();
redrawArrowOnParent
();
}
}
...
...
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