While in the IDE,
I create a TButton, I call it, say, ButtonX. Its caption can be anything.
Then I click twice on ButtonX and it declares a procedure in the Type section, under TForm1= CLASS(TForm), called procedure ButtonXClick(Sender: TObject); This makes sense, no problem.
Also, a skeleton is constructed automatically for the procedure called
TForm1.ButtonXClick(Sender: TObject);...Then I put some code so it does whatever.
It's all fine to here.
But if I want to change the name of the procedure so that it does not have the term Click, and so it only be called "Procedure ButtonX", I do that by going to the design form and in ButtonX properties, EVENTS, I change the name of the event DELETING THE "Click" part of the name, which it allows.
Now, automatically, in the Editor, the code is all changed to reflect the RENAMING of the EVENT for the button.
So actually ALL THE TOTAL change when all is working, consists of CHANGING the name of the event (in this case deleting "Click" from the event name. So the code is actually automaticallyupdated correctly to reflect this.
HOWEVER, when then I click the green arrow to RUN the program, I get this error message: Overload Identifier ButtonX isn't a function.
In summary, changing the name so the event is no longer called ButtonXClick, to just ButtonX creates this strange response.
And so I'd still like to know why, because I'd still like to change the name of the event so it does not have the name click. I have reasons for this wanting, and this here is just example. Actual component names would vary, of course.
Thanks for any help.