Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID


We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.


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.