Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!styx!ames!ucbcad!ucbvax!jade!violet.berkeley.edu!mkent From: mkent@violet.berkeley.edu Newsgroups: comp.sys.amiga Subject: window and mouse cursor questions Message-ID: <2724@jade.BERKELEY.EDU> Date: Mon, 9-Mar-87 03:38:34 EST Article-I.D.: jade.2724 Posted: Mon Mar 9 03:38:34 1987 Date-Received: Tue, 10-Mar-87 03:45:56 EST Sender: usenet@jade.BERKELEY.EDU Reply-To: mkent@violet.berkeley.edu() Organization: University of California, Berkeley Lines: 42 I've been working on a package to make creation and management of console windows a bit simpler, but I'm having a few problems. I'd be eternally grateful if anyone can answer any of the following questions for me. . . How do you set the pen color of a console window higher than color number 7? The "graphics rendition" string ( ;[30+color-number]m ) works fine for the low color numbers, but it interprets numbers > 40 as background pen colors (as per the documentation, amazingly). I notice SetAPen has no effect on the color of text printed in console windows. Note that I'm printing in the window using the console device i/o calls, *not* the text library stuff. How can I programmatically control which window is active? For instance, I have a window for drawing, in which mouse clicks are meaningful, but I don't ever want that window to become active (since I have another window for reading typein and displaying text). I've found documentation on how to determine which window's active, but nothing on how to set this yourself from within a program. Last question (for now :-)): how does one programmatically control the mouse state? I'd like to move the mouse cursor and simulate button presses. I remember about a year ago someone asked a question like this and got an amazingly silly answer from a Commodore employee about Intuition's mind and body staying together... Hopefully someone on the net actually knows about this. Please drop me a line if you have ideas about any of these problems; I'd really like to get some resolution here. . . . . . . . . ... . . . . . . Marty Kent net: MKent@violet.berkeley.edu work: Dept. of EMST / 4527 Tolman Hall / UC Berkeley / Berkeley, Ca. 94720 415/ 642 0288 home: 1129 Bancroft Way / Berkeley, Ca. 94702 415/ 548 9129 . . . ... . . . . . . . ... . . for