<< Return to Main Index

< Return to Class Index

class CGXEditControl: public CEdit, public CGXControl

The CGXEditControl class implements a text input control that can be used to display and edit text in cells. The user can modify this text in place and can change any style attributes with the CGXStyleSheet dialog.

Style attributes that specify the appearance of the cell are:

CGXEditControl fully supports find and replace.

The default id for CGXEditControl controls is GX_IDS_CTRL_EDIT.

You can apply text to cells with

   SetStyleRange(range,
      CGXStyle()
         .SetControl(GX_IDS_CTRL_EDIT)
         .SetValue("Input Text")
         .SetMaxLength(20)
         .SetAutoSize(TRUE)
         .SetAllowEnter(TRUE)
         .SetWrapText(TRUE)
         .SetDraw3dFrame(gxFrameInset)
      );

#include <gxall.h>

See Also

CGXGridCore::RegisterControl CGXStyle::SetControl CGXStyle

CGXEditControl

Class Members