[fpc-pascal] FPC Graphics options?

James Richters james at productionautomation.net
Tue May 23 01:13:26 CEST 2017


>Here is a simple sample program that has the issue for me on both my windows 10 desktop and my windows 10 laptop, both are 64bit.
>https://hastebin.com/nubonozaho.pas

I started thinking about this, and did some more tests, and I think I have narrowed down what is really happening, but not sure how to fix it.   

The problem is not the ALT-tab from the graphics window,  it's ALT being pressed when the window focus changes.   CTRL is also affected, but not shift.  Try this:
Go to Graph window,  type some letters,  see that it's working correctly,  now hold just ALT, or CTRL - switch to another window by clicking on it.  Click on console window, see letters are working correctly, now go back to graph window,  anything you press acts like ALT, or CTRL is still being pressed until you actually enter a keystroke using ALT, or CTRL.   It seems to me there is probably some flag or variable being set that the alt or ctrl key is being pressed, but is being interrupted by the window focus change, when focus is brought back, the variable is still set for ALT or CTRL being down, but neither is down anymore, but the flag cannot be cleared until a key sequence using ctrl or alt is used.  I did also notice that just hitting alt or ctrl and releasing it in the graph window clears the condition and characters are back to normal again.

James





More information about the fpc-pascal mailing list