FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

SF #1651350 win terminal: pause mouse key|any does not work · gnuplot/gnuplot-old@d577c60 · GitHub

Repository navigation

Commit d577c60

Browse files
mikulik
committed
SF #1651350 win terminal: pause mouse key|any does not work
mouse.c (event_keypress): Kill pending Pause dialog. win/wpause.c (PauseBox): Don't show "OK CANCEL" dialog when pausing for mouse.
1 parent a1f8286 commit d577c60

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

‎ChangeLog‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2007-02-10 Petr Mikulik <mikulik@physics.muni.cz>
2+
3+
SF #1651350 win terminal: pause mouse key|any does not work
4+
5+
* src/mouse.c (event_keypress): Kill pending Pause dialog.
6+
7+
* src/win/wpause.c (PauseBox): Don't show "OK CANCEL" dialog when
8+
pausing for mouse.
9+
110
2007-02-09 Daniel Sebald <daniel.sebald@ieee.org>
211

312
* term/pdf.trm (PDF_point): Point type 1 was incorrectly drawn as a dot.

‎src/mouse.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef lint
2-
static char *RCSid() { return RCSid("$Id: mouse.c,v 1.85 2006/07/18 05:20:50 mikulik Exp $"); }
2+
static char *RCSid() { return RCSid("$Id: mouse.c,v 1.86 2007/02/10 00:14:54 mikulik Exp $"); }
33
#endif
44

55
/* GNUPLOT - mouse.c */
@@ -1362,6 +1362,11 @@ event_keypress(struct gp_event_t *ge, TBOOLEAN current)
13621362
* which is a bad thing if you are in the middle of a mousing operation.
13631363
*/
13641364

1365+
#ifdef _Windows
1366+
if (paused_for_mouse & PAUSE_KEYSTROKE)
1367+
kill_pending_Pause_dialog();
1368+
#endif
1369+
13651370
if ((paused_for_mouse & PAUSE_KEYSTROKE) && (c > '\0') && current) {
13661371
load_mouse_variables(x, y, FALSE, c);
13671372
return;

‎src/win/wpause.c‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef lint
2-
static char *RCSid() { return RCSid("$Id: wpause.c,v 1.14 2006/11/10 22:30:16 tlecomte Exp $"); }
2+
static char *RCSid() { return RCSid("$Id: wpause.c,v 1.15 2007/02/10 00:14:54 mikulik Exp $"); }
33
#endif
44

55
/* GNUPLOT - win/wpause.c */
@@ -180,9 +180,17 @@ PauseBox(LPPW lppw)
180180
lppw->hWndParent, NULL, lppw->hInstance, lppw);
181181

182182
SendMessage(lppw->hCancel, BM_SETSTYLE, (WPARAM)BS_DEFPUSHBUTTON, (LPARAM)FALSE);
183-
ShowWindow(lppw->hWndPause, SW_SHOWNORMAL);
184-
BringWindowToTop(lppw->hWndPause);
185-
UpdateWindow(lppw->hWndPause);
183+
184+
/* Don't show the pause "OK CANCEL" dialog for "pause mouse ..." -- well, show
185+
it only for "pause -1".
186+
Note: maybe to show in the window titlebar or somewhere else a message like
187+
graphwin.Title = "gnuplot pausing (waiting for mouse click)";
188+
*/
189+
if (!paused_for_mouse) {
190+
ShowWindow(lppw->hWndPause, SW_SHOWNORMAL);
191+
BringWindowToTop(lppw->hWndPause);
192+
UpdateWindow(lppw->hWndPause);
193+
}
186194

187195
lppw->bPause = TRUE;
188196
lppw->bPauseCancel = IDCANCEL;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL