title: Calling a button click on Message Dialog (mrYes)
body: <p>Not really sure what I'm doing wrong but I am in the middle of putting together an android app using Delphi XE8. </p>
  
  <p>At a certain point when a a message dialog appears and user selects YES I want it to call a button OnClick event which is already in the app. </p>
  
  <p>The button loads the camera when pressed.</p>
  
  <p>I have done this thinking it is correct but it doesn't work:</p>
  
  <pre><code> if MessageDlg ('Do you wish to continue?', TMsgDlgType.mtConfirmation, [TMsgDlgBtn.mbYes, TMsgDlgBtn.mbNo],0) = mrYes then
     begin
       TakeImageClick(self);
     end;
  </code></pre>
  
  <p>Stepping through the code I do not get any errors but it just completely skips over the button click event.</p>
  
  <p>The button is a TSpeedButton.</p>
  
  <p>Any help would be much appreciated.
  Thanks,</p>