Recent

Author Topic: [Solved] Cannot detect key[Down|Press|Up] activity in Lazarus on MacOS X 11-14  (Read 1749 times)

BradleySlavik

  • New member
  • *
  • Posts: 7
One last question. The right-click to "Find Declaration of GetKeyState" is not working.

Use Ctrl Click.

Or Cmd-Click if you are on a Mac  ;)

I understand what you are saying.
Command-click (left-click) does nothing.
Command-(right-click) produces pop-up menu that says "Close Page" at top, and "Other tabs" at bottom
Right-click produces menu that has "Find Declaration of ShowMessage" (in this case) and when I choose that I get
unit1.pas Error: unit not found StdCtrls
and the uses line is highlighted.

It does not take me to the declaration or definition of ShowMessage or GetKeyState when I click on it.

I would like to have that work. I have the source of FreePascal unzipped in a directory pointed to by the
Lazarus->Preferences->Environment->Files->FPC Source Directory entry.

Do I need to look at a setting for Lazarus? It is currently installed in /Applications/Lazarus. Will that work? Do I need to set something in fpc.cfg or somewhere else? I am not being shown any procedure or function declarations or definitions. If it is possiible, I would like to fix this by adjusting my configuration.

I am just starting to learn Lazarus, and there are things that are probably obvious to you, that I have not figured out yet.

Thanks!

BradleySlavik

  • New member
  • *
  • Posts: 7
One last question. The right-click to "Find Declaration of GetKeyState" is not working.

Use Ctrl Click.

Or Cmd-Click if you are on a Mac  ;)

I understand what you are saying.
Command-click (left-click) does nothing.

OK. I rebooted that system. Command-click NOW takes me to function declaration. Something must have been messed up.
I will keep looking for how to get the the definition, so that I can see when functions are not implemented.

Thank you all for helping me get started.
I have been wanting to port some old software to many modern languages and platforms and it appears that Lazarus will be a great place for me to rewrite that code in Pascal.

Bradley

 

TinyPortal © 2005-2018