Thanks for the response.
An update to what I had written: I have been able to recreate the problem with RichMemo. Using Ubuntu 18 (Linux) with Lazarus2.2.4.
I create a new application, and place a TRichMemo component on its form as RichMemo1. The project compiles successfully, using unit RichMemo which seems to be added to my "uses" clause automatically.
Using the object inspector then, I select the RichMemo1 object and view its events tab. If I click on any one of the events to set it, I get the following error message:
code tools,Errors: 1
richmemo.pas(30,33) Error: unit not found: stdCtrls.
(I am getting this error if I put a button on the form and try to set its "onclick" event too.)
Somehow though, if I terminate lazarus completely and start it again, everything works and the events appear in my unit1 as usual.
FInally, the good news for me seems to be that the code tools errors go away if I uninstall the richmemo component.
Sorry for the confusion about my "StdControls" mistake earlier.