1. question about mouse.e

------=_NextPart_000_0009_01BE0E76.918513A0
        charset="iso-8859-1"

i was writing a program that uses the mouse in text mode nad it gave me this
error please help?
jesse kint
jk2000


------=_NextPart_000_0009_01BE0E76.918513A0
        name="ex.err"
Content-Transfer-Encoding: quoted-printable

new topic     » topic index » view message » categorize

2. Re: question about mouse.e

jesse,

Even in the text mode, get_mouse() returns are sort of 'pixel' based. Below is a
routine
from my old ratbag.e (from my old first collection, still available from the
Archives, I
think), that corrects the anomaly. jiri

global function get_text_mouse()
   -- same as get_mouse(), except it returns column & row of mouse text cursor
   object me
   me = machine_func(14,0)
   if sequence(me) then
      me[2..3]=me[2..3]/8+1
   end if
   return me
end function   -- get_text_mouse

new topic     » goto parent     » topic index » view message » categorize

3. Re: question about mouse.e

On Fri, 13 Nov 1998, BABOR, JIRI wrote:

> jesse,
>
> Even in the text mode, get_mouse() returns are sort of 'pixel' based. Below is
> a routine
> from my old ratbag.e (from my old first collection, still available from the
> Archives, I
> think), that corrects the anomaly. jiri
>
> global function get_text_mouse()

This works fine. DC uses it in EE. However, you all might find that in
text-screen modes above 25 lines, the mouse doesn't want to go below line
25... Use confine_mouse() to unconfine it :) .

IIRC:
vc = video_config()
confine_mouse({{1,1},{vc[VC_COLUMNS], vc[VC_ROWS]})

Was something like the syntax I used. It's in my version of DC's toolkit
anyway.

--
Carl R White -- Final Year Computer Science at the University of Bradford
E-mail...: cyrek- at -bigfoot.com -- Remove the hyphens before mailing. Ta :)
URL......: http://www.bigfoot.com/~cyrek/
Ykk rnyllaqur rgiokc cea nyemdok ymc giququezka caysgr -- B.Q.Vgesa

new topic     » goto parent     » topic index » view message » categorize

4. Re: question about mouse.e

Carl White wrote:

> However, you all might find that in text-screen modes
> above 25 lines, the mouse [in EE] doesn't want to go
> below line 25.

That's odd. I can't duplicate the error on my machines. sad

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

5. Re: question about mouse.e

On Fri, 13 Nov 1998, Cuny, David wrote:

> Carl White wrote:
>
> > However, you all might find that in text-screen modes
> > above 25 lines, the mouse [in EE] doesn't want to go
> > below line 25.
>
> That's odd. I can't duplicate the error on my machines. sad

Oo-er. Might be a benign screen/mouse driver conflict on my machine
then... (Cirrus Logic 543x drivers and MMOUSE.COM, a common 3rd party
driver that causes no problems with anything else...)

I think I said somewhere that I used confine_mouse() to fix it, anyhow...

Don't worry about it :)
Carl

--
Carl R White -- Final Year Computer Science at the University of Bradford
E-mail...: cyrek- at -bigfoot.com -- Remove the hyphens before mailing. Ta :)
URL......: http://www.bigfoot.com/~cyrek/
Ykk rnyllaqur rgiokc cea nyemdok ymc giququezka caysgr -- B.Q.Vgesa

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu