home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / OOFILE / docs / guihooks.txt < prev    next >
Encoding:
Text File  |  1995-08-27  |  1.2 KB  |  22 lines  |  [TEXT/ttxt]

  1. GUIHOOKS.TXT
  2.  
  3. This document summarises the points at which you can easily customise gui integration behaviour.
  4.  
  5. There are a number of protected virtual methods provided in the helper classes. Simply override these methods to provide your own processing.
  6.  
  7. CLASS dbEditHelper
  8.  
  9. EnteringAboutToLoad()
  10. - Called just before copying record values into controls. Controls should be fully constructed at this point, by the mechanism specific to the particular GUI, and probably initialised to default values.
  11.  
  12. EnteringAfterLoad()
  13. - Called after record values are loaded into controls. If you have any unlinked controls which have values derived from the database values, this is where you'd set them. (Alternatively, once we implement virtual fields, you could have a virtual field linked to the control.)
  14.  
  15. CanLeaveRecord
  16. - Called by all movement buttons and OK button. Default allows departure from record but you can override for complex validation.
  17.  
  18. LeavingAboutToSave()
  19. - Called just before copying the values back to the fields, from the various edit controls.
  20.  
  21. LeavingAfterSave()
  22. - Called immediately after the record has been saved to the database, but before the record is unloaded or the context changes in any way. Changes to the edit controls at this point would NOT be saved.