[fpc-pascal] FPC Graphics options?

Nikolay Nikolov nickysn at gmail.com
Tue May 23 20:07:24 CEST 2017



On 05/23/2017 08:28 PM, James Richters wrote:
> I have done the "download snapshot" but I just don't know what to do with it now to properly integrate it into my compiler.
Follow the instructions in docs/INSTALL.txt to compile the package. Then 
add units\i386-win32 from the snapshot directory to the unit search path 
of your compiler.
>
> Here is what I have tried to do.
> First I moved everything from J:\Programming\FPC 3.0.2\units\i386-win32\graph to a temporary location so it wouldn't find the old versions of ptcgraph and ptccrt
> Now when I try to compile my program, I get unit ptcgraph not found... which is what I want because I want to be sure not to get the old version
> Then I copied the entire snapshot to into J:\Programming\FPC 3.0.2\units\i386-win32\ptcpas
> Now when I try to compile my program, I still get unit ptcgraph not found.
> I added J:\Programming\FPC 3.0.2\units\$fpctarget\ptcpas\* to the directories
> Now I got an error that it could not find graphh.inc
> So I copied all the .inc files from J:\Programming\FPC 3.0.2\units\i386-win32\graph\inc to J:\Programming\FPC 3.0.2\units\i386-win32\graph because I have no idea how else to make it find them.
> Now I can can compile successfully and run my program, but it has the same issues.
> But I notice the modified file win32kbd.inc is never used.   I have even removed it temporarily and I can still compile successfully.      I did a search for win32kbd and I find win32kbdd.inc but not win32kbd.inc
>
> That is where I am at.  I think If I could correctly apply win32kbd.inc it may work
>
> James
>
>
>
> -----Original Message-----
> From: fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Nikolay Nikolov
> Sent: Tuesday, May 23, 2017 1:03 PM
> To: fpc-pascal at lists.freepascal.org
> Subject: Re: [fpc-pascal] FPC Graphics options?
>
>
>
> On 05/23/2017 06:09 PM, James Richters wrote:
>> I think I figured out my problem, but I'm not sure how to fix it.   I was looking at the code here: https://sourceforge.net/p/ptcpas/code/714/
>> And I see that the change made was to win32kbd.inc, but I don't think I'm using the updated version of it.   I think my problem is that I just compiled ptcgraph.pp and replaced ptcgraph.ppu in FPCWin\units\i386-win32\graph.... so apparently that's not the correct way to do it.    So then I tried adding the entire folder downloaded from https://sourceforge.net/projects/ptcpas/files/
> But that's a fix, that's not yet released (because it needs testing), so it's in svn trunk only, and not in the release files. Get it from:
>
>    https://sourceforge.net/p/ptcpas/code/HEAD/tree/trunk/
>
> Either click on "Download Snapshot", or install subversion (TortoiseSVN) and checkout https://svn.code.sf.net/p/ptcpas/code/trunk
>
>> Into a folder at FPCWin\units\i386-win32\ptcpas  then renaming the original ptccrt.ppu and ptcgraph.ppu located in FPCWin\units\i386-win32\graph but now It can't find ptcgraph, even though it's there under  FPCWin\units\i386-win32\ptcpas\ptcgraph so now I'm realizing that I'm just guessing and really don't have a clue the proper way to integrate this into my fpc compiler.
>>
>> Could someone please tell me the correct way I should be doing this so that the compiler will find the correct versions of all the files necessary?
>>
>> James
>>
>>
>> -----Original Message-----
>> From: fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] On
>> Behalf Of James Richters
>> Sent: Monday, May 22, 2017 7:13 PM
>> To: 'FPC-Pascal users discussions' <fpc-pascal at lists.freepascal.org>
>> Subject: Re: [fpc-pascal] FPC Graphics options?
>>
>>> 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
>>
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list