How to handle Onclick event
Moderators: SDS, support, admin
-
- Posts: 24
- Joined: 13 Apr 2006, 16:20
How to handle Onclick event
Hi,
I have noticed that you use to point to the event handler. But I can not use the same way for OnClick. Compiler error. Please guide what is the difference between the two events and how to write the handler for OnClick event.
I have noticed that you use
Code: Select all
sgPaintBox->OnMouseUp = sgPaintBoxMouseUp;
Re: How to handle Onclick event
Hello.
Probably you're not realize the correspond event handler for OnClick event that is necessary to use event. You need define (in .h file) and write (in .cpp) event handler (void __fastcall):
Alexander.
Probably you're not realize the correspond event handler for OnClick event that is necessary to use event. You need define (in .h file) and write (in .cpp) event handler (void __fastcall):
Code: Select all
void __fastcall sgPaintBoxOnClick(TObject *Sender);
Code: Select all
void __fastcall TfmMain::sgPaintBoxOnClick(TObject *Sender)
{
MessageBox(Handle, "Hello", "OnClick event handler", MB_ICONWARNING);
}
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support