CGXPushbutton::CGXPushbutton

CGXPushbutton(CGXGridCore* pGrid);

CGXPushbutton(CGXGridCore* pGrid, CGXButton* pChild);

pGrid

Pointer to the parent grid.

pChild

Accepts a pointer to a child button object.

Remarks

Constructs a pushbutton object.

You need to register this object in the grid with CGXGridCore::RegisterControl before you can use it in cells (see example).

Use the second variant of the constructor when you want to attach a derived CGXButton class.

Example

This example shows how Objective Grid registers a pushbutton control in the grid:

// Push Button
RegisterControl(GX_IDS_CTRL_PUSHBTN,
      new CGXPushbutton(this));

See Also

 CGXGridCore::RegisterControl

CGXPushbutton

 Class Overview |  Class Members