www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/06/05:38:37

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Thu, 6 Apr 1995 08:25:32 GMT
Subject: Re: Mouse in windows

  arthurto AT elmail DOT cc DOT purdue DOT edu wrote:-

> I know this is off topic, but does anyone know why my mouse dies when I go
> to windowed dos session? I have a Microsoft Serial Mouse.

AAEMACS that I wrote in Gnu C++ uses the mouse, with my own mouse interrupt
routine. I find that, when I call AAEMACS from Windows:-
  When in full screen mode, AAEMACS catches all mouse events and obeys them
same as under DOS, so Windows can't see the mouse.
  When in a window, AAEMACS ignores the mouse, but Windows obeys the mouse.
  This seems to happen whether I call AAEMACS from File Manager, or by
clicking AAEMACS's icon, or from DOS-in-Windows.
  Likely full-screen DOS-in-Windows when not in a program, catches and throws
away all mouse events, same as plain DOS does when not in a program.
  Here is the relevant section from AAEMACS's README file:-

  (0) File EMACS.ICO is an icon (a diver using a blowtorch).
  (1) If a Novell net access program has been activated in that PC since it
was booted last, when calling AAEMACS (or other Gnu C programs) from Windows:-
    (a) The `call DOS from AAEMACS' option does not work.
    (b) On entry AAEMACS will always ask you where its home directory is.
  The cause is likeliest a bug in Gnu C, or clashing PC interrupts somewhere.
  (2) Windows always intercepts the Alt-Return keypress: it switches the
AAEMACS Windows task between full-screen mode and in-a-window mode.
  (3) Windows always intercepts the Alt-Tab keypress: it reduces the AAEMACS
task to an icon on the `desktop' (= `minimizes' it) and goes back to Windows.
Or the reverse, if the AAEMACS task was minimized before. See your Windows
manual.
  (4) If you run AAEMACS in a window (rather than in full-screen mode),
Windows intercepts and obeys all mouse events, and AAEMACS ignores them.
  (5) To set up a Windows icon position for AAEMACS:-
    (a) In the desired window, duplicate one of the existing icons by dragging
it with the mouse while holding the Control key down. Keep the copy selected.
    (b) In the top left corner of the Program Manager window, click `File'.
    (c) In the resulting new window, click `Properties'.
    (d) In the resulting `Program Item Properties' window:-
      click `Description' and change it to `AAEMACS',
      click `Command Line' and change it to the full pathname of your copy of
file AAEMACS.EXE,
      click `Working Directory' and change it to your hard disk's root
directory,
      click `Change Icon'.
    (e) In the resulting `Change Icon' window, click the `File name' line and
change it to the full pathname of your copy of file EMACS.ICO,
    (f) Click `OK' in each of these new windows in turn, newest first.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019