View Single Post
  #1268  
Old 14-04-2017, 09:20
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
>>how do i attach event to the button? (for example: exit).

Code:
procedure BtnClick(hBtn:HWND);
begin
  WizardForm.CancelButton.Click;
end;

...

BtnSetEvent(hBtn,BtnClickEventID,WrapBtnCallback(@BtnClick,1));
Reply With Quote