Home / api / name / gb.attach 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
fr  de  es  it  nl  pl  pt  pt_BR  mk  ca  ar  fa  vi  ja  ru  zh  zh_TW  eo 
Documentation
History
 
GB.Attach
Syntax
void GB.Attach ( void *object , void *parent , const char *name )

Defines the event observer of an object, i.e. the parent object that will receive all the events it will raise.

For example, if name is "Form" and the object raises the event Close, then the Form_Close method of the event observer will be called.

If the object already has an event observer, it is detached from it, and then attached to the new one.

See also

Object Management  Event Management