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
f2fcb6ee
Commit
f2fcb6ee
authored
Apr 21, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes to non-unicode build
parent
da864989
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
src/gui/drop_down_list.cpp
src/gui/drop_down_list.cpp
+4
-0
src/gui/util.cpp
src/gui/util.cpp
+1
-1
src/gui/value/text.cpp
src/gui/value/text.cpp
+5
-1
src/mse.vcproj
src/mse.vcproj
+1
-1
No files found.
src/gui/drop_down_list.cpp
View file @
f2fcb6ee
...
@@ -352,7 +352,11 @@ bool DropDownList::onCharInParent(wxKeyEvent& ev) {
...
@@ -352,7 +352,11 @@ bool DropDownList::onCharInParent(wxKeyEvent& ev) {
for
(
size_t
i
=
0
;
i
<
count
;
++
i
)
{
for
(
size_t
i
=
0
;
i
<
count
;
++
i
)
{
size_t
index
=
(
si
+
i
)
%
count
;
size_t
index
=
(
si
+
i
)
%
count
;
String
c
=
itemText
(
index
);
String
c
=
itemText
(
index
);
#ifdef UNICODE
if
(
!
c
.
empty
()
&&
toUpper
(
c
.
GetChar
(
0
))
==
toUpper
(
ev
.
GetUnicodeKey
()))
{
if
(
!
c
.
empty
()
&&
toUpper
(
c
.
GetChar
(
0
))
==
toUpper
(
ev
.
GetUnicodeKey
()))
{
#else
if
(
!
c
.
empty
()
&&
toUpper
(
c
.
GetChar
(
0
))
==
toUpper
(
ev
.
GetKeyCode
()))
{
#endif
// first character matches
// first character matches
selected_item
=
index
;
selected_item
=
index
;
showSubMenu
();
showSubMenu
();
...
...
src/gui/util.cpp
View file @
f2fcb6ee
...
@@ -152,7 +152,7 @@ void draw_control_border(Window* win, DC& dc, const wxRect& rect) {
...
@@ -152,7 +152,7 @@ void draw_control_border(Window* win, DC& dc, const wxRect& rect) {
RECT
r
;
RECT
r
;
wxUxThemeEngine
*
themeEngine
=
wxUxThemeEngine
::
Get
();
wxUxThemeEngine
*
themeEngine
=
wxUxThemeEngine
::
Get
();
if
(
themeEngine
&&
themeEngine
->
IsAppThemed
())
{
if
(
themeEngine
&&
themeEngine
->
IsAppThemed
())
{
wxUxThemeHandle
hTheme
(
win
,
_
(
"EDIT"
)
);
wxUxThemeHandle
hTheme
(
win
,
L"EDIT"
);
r
.
left
=
rect
.
x
-
1
;
r
.
left
=
rect
.
x
-
1
;
r
.
top
=
rect
.
y
-
1
;
r
.
top
=
rect
.
y
-
1
;
r
.
right
=
rect
.
x
+
rect
.
width
+
1
;
r
.
right
=
rect
.
x
+
rect
.
width
+
1
;
...
...
src/gui/value/text.cpp
View file @
f2fcb6ee
...
@@ -199,7 +199,11 @@ bool TextValueEditor::onChar(wxKeyEvent& ev) {
...
@@ -199,7 +199,11 @@ bool TextValueEditor::onChar(wxKeyEvent& ev) {
// TODO: Find a more correct way to determine normal characters,
// TODO: Find a more correct way to determine normal characters,
// this might not work for internationalized input.
// this might not work for internationalized input.
// It might also not be portable!
// It might also not be portable!
replaceSelection
(
escape
(
String
(
ev
.
GetUnicodeKey
(),
1
)),
_
(
"Typing"
));
#ifdef UNICODE
replaceSelection
(
escape
(
String
(
ev
.
GetUnicodeKey
(),
1
)),
_
(
"Typing"
));
#else
replaceSelection
(
escape
(
String
((
Char
)
ev
.
GetKeyCode
(),
1
)),
_
(
"Typing"
));
#endif
}
else
{
}
else
{
return
false
;
return
false
;
}
}
...
...
src/mse.vcproj
View file @
f2fcb6ee
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
Name=
"VCCustomBuildTool"
/>
Name=
"VCCustomBuildTool"
/>
<Tool
<Tool
Name=
"VCLinkerTool"
Name=
"VCLinkerTool"
AdditionalDependencies=
"rpcrt4.lib wsock32.lib comctl32.lib wxbase26.lib wxmsw26_core.lib wxjpeg.lib wxpng.lib wxtiff.lib wxzlib.lib wxregex.lib"
AdditionalDependencies=
"rpcrt4.lib wsock32.lib comctl32.lib wxbase26.lib wxmsw26_core.lib wxjpeg.lib wxpng.lib wxtiff.lib wxzlib.lib wxregex.lib
wxbase26_net.lib wxmsw26_html.lib
"
OutputFile=
"$(OutDir)/mse.exe"
OutputFile=
"$(OutDir)/mse.exe"
LinkIncremental=
"1"
LinkIncremental=
"1"
SuppressStartupBanner=
"TRUE"
SuppressStartupBanner=
"TRUE"
...
...
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