<< Return to Main Index

< Return to Class Index

class CGXSpinEdit: public CGXEditControl

The CGXSpinEdit class implements a text input control with spin buttons. The user can modify text in place, increase or decrease the value by clicking on the spin buttons or change any style attributes with the CGXStyleSheet dialog.

Style attributes which specify the appearance of the cell are:

Because CGXSpinEdit is derived from CGXEditControl, it fully supports find and replace.

The default id for CGXSpinEdit controls is GX_IDS_CTRL_SPINEDIT.

When the user clicks one of the buttons, the control’s OnClickedButton method is called. The default behavior of OnClickedButton is to increase or decrease the value and, finally, call CGXGridCore::OnClickedButtonRowCol.

To process this event, you can either subclass CGXSpinEdit and override the control’s OnClickedButton method, or simply override OnClickedButtonRowCol in your CGXGridCore-derived class.

#include <gxall.h>

See Also

CGXGridCore::RegisterControl CGXStyle::SetControl CGXStyle

CGXSpinEdit

Class Members