#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    28
    Rep Power
    0

    Is it possible to call form event in Object file ?


    i just want to use a form event(OnDrawCell) in my object file...
    In my object file i just wants to override that form event...
    Is it possible ?

    Thanks in advance...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2006
    Location
    Carlsbad, CA
    Posts
    2,055
    Rep Power
    383
    Originally Posted by Murugavel
    i just want to use a form event(OnDrawCell) in my object file...
    In my object file i just wants to override that form event...
    Is it possible ?

    Thanks in advance...
    Could you be a bit more specific?
    override is a keyword with a defined meaning and I am not sure that this is what you are actually asking.

    Clive
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    2
    Just change the event handler of that form event with what your object has. That basically the same as overriding the current form event. Sometimes you need to restore the event handler after your object is done with its mission. Therefore it might a good idea to store the current event handler reference.

IMN logo majestic logo threadwatch logo seochat tools logo