Hi Paul,
No fix needed or expected for my original post. This was simply an observation of behaviour that surprised me until I thought about it. The answer was that it was my grey area and my cursor, programmed in Clearwin+.
The scenario is that the user picks first an object, then a coordinate within that object. The object selection is done with an elaborate cursor, and once an object is selected the cursor changes to a crosshair so that the resolution becomes one pixel.
I thought that I'd write a very simple demonstrator for the effect, as the default cursor in a %gr area is a small 1-pixel crosshair, viz:
WINAPP
OPTIONS(INTL)
PROGRAM OLDGREY
INCLUDE <WINDOWS.INS>
IA=WINIO@('%ca[Old Grey Whistle Test]&')
IA=WINIO@('%gr[COLOUR=#7F7F7F]&', 200, 200)
IA=WINIO@('%ff%nl%bt[Quit]')
END
I don't normally use the COLOUR (or COLOR) option, and I was surprised to be told that COLOUR was not a valid option. GREY works, but it isn't 127,127,127
This one works:
WINAPP
OPTIONS(INTL)
PROGRAM NEWGREY
INCLUDE <WINDOWS.INS>
EXTERNAL iGREY
IA=WINIO@('%ca[New Grey Whistle Test]&')
IA=WINIO@('%sc&', iGREY)
IA=WINIO@('%gr[rgb_colours,WHITE]&', 200, 200)
IA=WINIO@('%ff%nl%bt[Quit]')
END
INTEGER FUNCTION iGREY()
INCLUDE <WINDOWS.INS>
CALL DRAW_FILLED_RECTANGLE@(0,0,100,200,RGB@(127,127,127))
iGREY=2
END
I was a bit surprised to see that %gr defaulted to VGA colours without the [rgb_colours] option, so my grey rectangle was black! Note that COLOUR option wasn't accepted in the first test even when I used rgb_colours.
For the test I used v 7.20 PE. Have I detected a regression? (Or two?)
Eddie
PS In the second program the cursor disappears in the mid-grey area on the left.