# GB.Attach

`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.

- object points at the object.
- parent points at the event observer.
- name is the prefix used for defining event handler names.

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.