Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
0d99b783
Commit
0d99b783
authored
17 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
The Hide()/Show() hack is not Win32 only.
Also, go back to iconizing... rather than lowering *sigh*
parent
22b033a0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/syncterm/htmlwin.cpp
+6
-1
6 additions, 1 deletion
src/syncterm/htmlwin.cpp
src/syncterm/term.c
+3
-3
3 additions, 3 deletions
src/syncterm/term.c
with
9 additions
and
4 deletions
src/syncterm/htmlwin.cpp
+
6
−
1
View file @
0d99b783
...
@@ -182,7 +182,12 @@ void MyHTML::OnState(wxCommandEvent &event)
...
@@ -182,7 +182,12 @@ void MyHTML::OnState(wxCommandEvent &event)
UnHide
();
UnHide
();
if
(
frame
->
IsIconized
())
if
(
frame
->
IsIconized
())
frame
->
Iconize
(
false
);
frame
->
Iconize
(
false
);
#ifdef _WIN32
frame
->
Hide
();
#endif
frame
->
Show
();
frame
->
Raise
();
frame
->
Raise
();
htmlWindow
->
Show
();
htmlWindow
->
Raise
();
htmlWindow
->
Raise
();
htmlWindow
->
SetFocus
();
htmlWindow
->
SetFocus
();
break
;
break
;
...
@@ -377,7 +382,7 @@ extern "C" {
...
@@ -377,7 +382,7 @@ extern "C" {
str
[
1
]
=
0
;
str
[
1
]
=
0
;
add_html
(
str
);
add_html
(
str
);
}
}
void
show_html
(
const
char
*
page
)
void
show_html
(
const
char
*
page
)
{
{
if
(
wxTheApp
)
{
if
(
wxTheApp
)
{
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/term.c
+
3
−
3
View file @
0d99b783
...
@@ -40,7 +40,7 @@ static struct text_info log_ti;
...
@@ -40,7 +40,7 @@ static struct text_info log_ti;
#ifdef WITH_WXWIDGETS
#ifdef WITH_WXWIDGETS
enum
html_mode
{
enum
html_mode
{
HTML_MODE_HIDDEN
HTML_MODE_HIDDEN
,
HTML_MODE_
LOWER
ED
,
HTML_MODE_
ICONIZ
ED
,
HTML_MODE_RAISED
,
HTML_MODE_RAISED
,
HTML_MODE_READING
,
HTML_MODE_READING
};
};
...
@@ -1387,8 +1387,8 @@ BOOL doterm(struct bbslist *bbs)
...
@@ -1387,8 +1387,8 @@ BOOL doterm(struct bbslist *bbs)
#ifdef WITH_WXWIDGETS
#ifdef WITH_WXWIDGETS
if
(
html_mode
==
HTML_MODE_RAISED
)
{
if
(
html_mode
==
HTML_MODE_RAISED
)
{
if
(
html_startx
!=
wherex
()
||
html_starty
!=
wherey
())
{
if
(
html_startx
!=
wherex
()
||
html_starty
!=
wherey
())
{
lower
_html
();
iconize
_html
();
html_mode
=
HTML_MODE_
LOWER
ED
;
html_mode
=
HTML_MODE_
ICONIZ
ED
;
}
}
}
}
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment