1. mouse
- Posted by =?iso-8859-1?B?JAs=?= <mwfch at MWEB.CO.ZA> Aug 30, 2000
- 406 views
------=_NextPart_000_0007_01C01240.B6B07B40 boundary="----=_NextPart_001_0008_01C01240.B6B07B40" ------=_NextPart_001_0008_01C01240.B6B07B40 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Run the program I included with this email . As you will see , the image = does not display at the position I want it to . I want the line to = display at the tip of the pointer . Please help . Thanx . Ferdinand ------=_NextPart_001_0008_01C01240.B6B07B40 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV>Run the program I included with this email . As you will see , = the=20 image does not display at the position I want it to . I want the = line to=20 display at the tip of the pointer . Please help . Thanx .</DIV> <DIV> </DIV> ------=_NextPart_001_0008_01C01240.B6B07B40-- ------=_NextPart_000_0007_01C01240.B6B07B40 name="mouse.ex"
2. Re: mouse
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Aug 30, 2000
- 418 views
Hello Ferdinand, It seems you had your x and y coordinants mixed up. Also in mode 19 the x coordinant needs to be divided by 2 or it will be twice as far right as it should be. later, Lewis Townsend --- Revised code --- -- I hope hotmail doesn't mess up my pretty indentation :) include mouse.e include graphics.e object mode,event procedure tile() pixel (repeat( 1,11 ), event[2..3]) -- was{event[3],event[2]} end procedure mode = graphics_mode(19) mouse_pointer(1) while 1 do event = get_mouse() if get_key()=27 then exit end if if sequence(event) then if and_bits(event[1],LEFT_DOWN) then event [2] /= 2 -- divide x coord by 2 in mode 19 tile() end if end if end while _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
3. Re: mouse
- Posted by =?iso-8859-1?B?RAc=?= <mwfch at MWEB.CO.ZA> Aug 31, 2000
- 428 views
------=_NextPart_000_0009_01C012F6.37499D80 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Lewis ! Thanks ! It works nice . Only one problem : when I move the mouse cursor = , the line disapear ! The reason I changed the x an y coordinants was = that I thought the problem was there . See ya ! ( I mean read ya ! ) Ferdinand ------=_NextPart_000_0009_01C012F6.37499D80 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial>Hi Lewis !</FONT></DIV> <DIV><FONT face=3DArial>Thanks ! It works nice . Only one problem : when = I move=20 the mouse cursor , the line disapear ! The reason I changed the x an = y =20 coordinants was that I thought the problem was there .</FONT></DIV> <DIV> </DIV> <DIV>See ya ! ( I mean read ya ! )</DIV> <DIV> </DIV> ------=_NextPart_000_0009_01C012F6.37499D80--
4. Re: mouse
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Aug 31, 2000
- 400 views
Hello Ferdinand, You wrote: <SNIP> >when I move the mouse cursor , the line disapear ! <SNIP> Why it does this is because it it erases the old image of the mouse pointer when it moves it to a new location. What happens is: . image behind new location of mouse pointer is saved . mouse pointer is displayed at new location . you draw your pixel line . mouse move event occurs . mouse pointer is erased by redisplaying the background . image which does NOT include your line, effectively . erasing your line. You COULD jsut draw the line in a place that is NOT overlapped by the mouse pointer but here is a better solution. mouse_pointer (0) -- manually erases pointer pixel () -- draw your line. mouse_pointer (1) -- redraws pointer and includes -- your line in the background image. later, Lewis Townsend _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
5. mouse
- Posted by Noah Smith <nhs6080 at UNIX.TAMU.EDU> Oct 08, 1998
- 421 views
Alright, I'm using a virtual screens with the mouse. To be creative, i turn off the mouse pointer and overlay a new "mouse" where the old one should be. The only problem is, the prog I'm working on may update the screen but every few seconds (probably only during mouse button activity). Is there any way that i can directly change the picture of the mouse pointer, instead of tracking and overlaying? snortboy
6. mouse
- Posted by r.f.hatfield <rfhatfield at yahoo.com> Jun 20, 2004
- 499 views
I'm using the mightymouse routines for hi-res graphics, and I need to set the location of the mouse cursor without actually moving the mouse. Can anyone tell me how to do this? I'm sure there must be some way. Thanks