Jamie L. Mitchell wrote: > Hi Rob: >> Define a private method of your wrapper class to match the TNotifyEvent >> signature. Assign that method to the speed button's OnClick event. >> Within that method, call the three-argument event handler that you >> expose to users of your wrapper component. >> > ---> I tried something like that but could not get it to work.
"Could not get it to work" doesn't tell me anything. > Do you have code you could show? You mean besides what I showed before? No. > I am likely missing the one little > piece that I need. Ideally, the wrapper object would have an event > that would publish this for the outside world. That is what I was > thinking. OK. That's what my OnButtonClick property was. > The handler would be assigned to the new event; OK. That part wasn't shown because I was showing you how to write the component, not how to use it. Using it is the same as any other component: Put it on a form and assign an event handler with the Object Inspector. > internal to > the wrapper class, the original OnClick would be set so that it would > fire the handler (if defined.) Right. That's what HandleButtonClick and DoButtonClick are for. I showed how to set things up in the constructor. -- Rob

