Re: question about mouse.e

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu