Mouse - Programmers Heaven

Howdy, Stranger!

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



vjekomanvjekoman Posts: 9Member
Can I use mouse in Pascal?


  • zibadianzibadian Posts: 6,349Member
    [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.
  • scorpionxx7scorpionxx7 Posts: 39Member
    you can use the getcursorpos command (uses tpoint variable) and then use virtual keys and if statements for the user to click on something
  • vjekomanvjekoman Posts: 9Member
    Thanks, I'll try it.

Sign In or Register to comment.