Mega Search
23.2 Million


Sign Up

Make a donation  
Problem with Button click event  
News Group: embarcadero.public.delphi.firemonkey

Hi,

I created a very simple FM app (HD).

I put a button on a form. then double click it, imagining to get the 
Button1Click event.

I get this error:
"Cannot find implementation of method Button1Click"

What am I doing wrong?

D XE4

Thanks
Rael

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Nov-2013, at 2:13 AM EST
From: Rael Bauer
 
Re: Problem with Button click event  
News Group: embarcadero.public.delphi.firemonkey
On 2013/11/30 02:45 AM, Dave Nottage  Rael Bauer wrote:
>
>> I get this error:
>> "Cannot find implementation of method Button1Click"
>
> There's an error in your code. Try compiling the app to find where the error is.
>

In a new project, when I click on the button, this is the source that is 
generated:

{code}
implementation

procedure TForm1.Button1Click(Sender: TObject);
begin

end;

{$R *.fmx}

end.
{code}

You can see the fmx goes underneath the button click event...

Happens every time. Is there a fix for this?

Thanks
Rael

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 4-Jan-2014, at 2:12 PM EST
From: Rael Bauer
 
Re: Problem with Button click event  
News Group: embarcadero.public.delphi.firemonkey
Rael Bauer wrote:

> I get this error:
> "Cannot find implementation of method Button1Click"

There's an error in your code. Try compiling the app to find where the error is.

-- 
Dave Nottage [TeamB]
Find tips and code samples at Delphi Worlds: 
http://delphi.radsoft.com.au/blog

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Nov-2013, at 8:45 PM EST
From: Dave Nottage