Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

Graph window and mouse;

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mr. Ivan Baev
Hello;

actually I have to tell, that I am a beginner; so I have the following problem:
I want to get the mouseevent in an graphic window; I know how to do this in an "crt" window (getmouseevent(event)),etc.; but I don't know, how to "switch" to the graphic window. So if someone could tell me, it would be very nice (or at least give a hint where to find in the documenatation).

Thanks

---
Ivan Baev

Marco van de Voort
to Mr. Ivan Baev
Show quoted text 7 lines
actually I have to tell, that I am a beginner; so I have the following problem: I want to get the mouseevent in an graphic window; I know how to do this in an "crt" window (getmouseevent(event)),etc.; but I don't know, how to "switch" to the graphic window. So if someone could tell me, it would be very nice (or at least give a hint where to find in the documenatation).

Use the "win" versions of mouse and crt, so "wincrt" and "winmouse".

See e.g. the samegame demo in 1.0.6