Hi there,
running my programs I encounter a few problems, where clearwin behaves differently from what I expect it to do. I would appreciate any support to get a starting point where to start my bugsearch.
I am running clearwin in a MS XP-home edition environment, SP 1 included (not SP2).
Here is the first one, concerning the mouse. I boiled down a far bigger routine to that few lines of code still showing my problem:
(1) include <windows.ins> (2) ictrl=0 (3) iwin=winio@('%gr[grey]&',400,200) (4) iwin=winio@('%lw',ictrl) (5)10 call get_mouse_info@(ix,iy,iflag) (6) print*,ix,iy,iflag (7) if(iflag.eq.0) then (8) call sleep@(0.5) (9) goto 10 (10) endif (11) stop (12) end
The idea is, I want to get info on the cursor position at any time the cursor is inside of the graphic window.
From what I get from the docs about get_mouse_info I would expect to receive ix and iy any time get_mouse_position is called, each .2 seconds here. After some time with the mouse in the graphic window I should expect a number of printouts in the textwindow, giving cursor positions.
Without line# 4, I only get a printout after I clicked lmb, otherwise the whole program seems to be on hold.
With line #4 (and the appropriate & in line #3) I get a series of prints, but all being 0, unless lmb is pressed.
Oh by the way, I am one of the fossils relying on implicit data types, that's why ix, iy, iflag are integers.
Any ideas ??
Norbert