Board index » cppbuilder » Calling event handlers from event handlers

Calling event handlers from event handlers

I am trying to call A DBGrid->OnTitleClick event from the same DBGrids
OnKeyPress event handler. Is there a problem with this? I don't think there
should be, I have called othere event handlers from event handlers before.
When I step through with the de{*word*81} the command DBGrid1->OnTitleClick is
ignored all together. Why would this be? Am I unknowingly doing something I
shouldn't?

Thanks,

Alan

 

Re:Calling event handlers from event handlers


Hi, Alan!

Is it possible that the optimizer is eliminating the call? How about a
call to DBGrid1TitleClick directly? Does that work?

------
Mark Cashman (TeamB - C++ Builder), creator of The Temp{*word*203}Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------

Other Threads