OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Calling Control Object Constructors

Some control object constructors are passed parameters that specify characteristics of the control object.

These parameters include

  • A pointer to the parent window object
  • A resource identifier
  • The x-coordinate of the upper-left corner
  • The y-coordinate of the upper-left corner
  • The width
  • The height
  • Optional module pointer

For example, one of TListBox's constructors is declared as follows:

TListBox(TWindow *parent, int resourceID, int x, int y, int w, int h, TModule *module = 0);

There are also constructors for associating a control object with an interface element (for example a dialog box) created from a resource definition:

TListBox(TWindow* parent, int resourceId, TModule* module = 0);

See Also