Re: Need Crash Course in Mouse Support
- Posted by CAMPOS ARRIBAS- LUIS RAUL <95203695 at XAEE.UB.ES> Jun 11, 1998
- 657 views
> Data de tramesa: Wed, 10 Jun 1998 22:34:04 -0400 > Enviar resposta a: Euphoria Programming for MS-DOS <EUPHORIA at > cwisserver1.mcs.muohio.edu> > De : Alan Tu <ATU5713 at COMPUSERVE.COM> > Assumpte: Need Crash Course in Mouse Support > A: EUPHORIA at cwisserver1.mcs.muohio.edu Hi Alan, > I need a crash course in mouse programming in Euphoria. Yeah! I'm dealing with the same problem.David Cuny post a tutorial about the subject...if you want it,drop me a line and I will send it to you.Maybe together we'll be able to solve the problem!! > First in DOS32. I think I can have the program just look for clicks, > instead of the move event. Now, if I display a text on the screen, and my > event would be the left mouse click on that text. get_mouse would return a > three atom sequence: > > 1. left-down > 2 & 3 coordinates > I wrote a little crappy program wich shows you how to work with the mouse in text mode and how to create buttons.It's in the user's contribution web page...give it a try and tell me what you think about it :) It checks buttons you pressed,the current position of the pointer,the position where you pressed either left&right buttons and something else that I don't remember right now...play with it! > The coordinates seem to run into at least a hundred. What is the > coordinate system used? Is it pixels? If so, I guess I need a crash > course on that too. > I had the same problem when I started to program the mouse!In text- mode it seems that you have to 'scale' the screen coordinates by dividing the X & Y coordinates by 8 (I still don't know why!!!)I'm not quite sure but I think that it's due to some peculiarity of the Dos system. > Then, is mouse programming in WIN32 easier or harder than DOS32? I don't > see any Euphoria routines that track mice in WIN32. > I've never programed before in graphical mode so I think that I can't help you with that matter:( ...but some day I will get started! > Thanks in advance. > > --Alan > > Regards, Luis