Howdy, Stranger!

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



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


  • zibadianzibadian Member Posts: 6,349
    [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 Member Posts: 39
    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 Member Posts: 9
    Thanks, I'll try it.

Sign In or Register to comment.