Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Mouse Events

harrykausl
Beginner
460 Views
In Intel-Fortran it is possible to catch mouse-events like left button, right button (up down) or move. How can I catch additionale buttons or a wheel turn.
Thanks.
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
460 Views

Yes, but it depends on type of application:

1) Console application: no

2) QuickWin/Standard Graphics: yes (partially). See REGISTERMOUSEEVENT. The behaviour can be extended to middle button and mouse wheel handling by subclassing (see POKER sample) and then using the same technique as in 3)

3) Win32 applications: yes. You have to handle WM_LBUTTON* / WM_RBUTTON* / WM_MBUTTON* / WM_MOUSEWHEEL / WM_MOUSENMOVE messages in the window procedure.

Jugoslav

0 Kudos
Reply