• 0

Delphi / Pascal Generic Event Handlers


Question

Right, I'm creating a hangman game using VLE Forms in Turbo Delphi 2006.

What I want to do it write a generic event handler so that I don't need to have 26 EH's doing the same thing when the only difference is the caption on the button that will be clicked.

I know theres a way of doing this, and it's got something to do with

if ????? (Sender as TButton).Caption ??? then ????

but thats all I know.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.