Can I use mouse in Pascal?


  • [b][red]This message was edited by zibadian at 2005-1-7 16:29:0[/red][/b][hr]
    : Can I use mouse in Pascal?
    TP 7.0 (perhaps earlier version too) has a Mouse unit. This allows you access to the mouse. Beware that the mouse might not work correctly if you use Readln() to get user-input. To respond to mouse clicks, you'll have to write your program in an event-driven architecture.
    The mouse also works in the BGI graphics modes.
  • you can use the getcursorpos command (uses tpoint variable) and then use virtual keys and if statements for the user to click on something
  • Thanks, I'll try it.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!