Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtGridInplaceEdit::m_bForceDisableInitSelText - Request Collapse All
Subject Author Date
Suhai Gyorgy Jan 8, 2008 - 8:47 AM

Dear Support,

Would it be possible to add a new cell style which would modify the class variable CExtGridInplaceEdit::m_bForceDisableInitSelText to have the value true instead of the default false?

Thank you!

Technical Support Jan 9, 2008 - 11:02 AM

We have added one new extended grid cell style in the ../Prof-UIS/Include/ExtGridWnd.h file:

// do not select entire text in the in-place cell editor
#define __EGCS_EX_NO_INPLACE_CONTROL_SELECTION        0x00004000L
And changed the body of the following constructor in the ../Prof-UIS/Src/ExtGridWnd.cpp file:
CExtGridInplaceEdit::CExtGridInplaceEdit(
      CExtGridWnd & wndGrid,
      CExtGridCell & cell,
      LONG nVisibleColNo,
      LONG nVisibleRowNo,
      LONG nColNo,
      LONG nRowNo,
      INT nColType,
      INT nRowType,
      const RECT & rcCellExtra,
      const RECT & rcCell,
      const RECT & rcInplaceControl,
      LONG nLastEditedColNo,
      LONG nLastEditedRowNo
      )
      : CExtGIE < CExtEditBase > (
            wndGrid,
            cell,
            nVisibleColNo,
            nVisibleRowNo,
            nColNo,
            nRowNo,
            nColType,
            nRowType,
            rcCellExtra,
            rcCell,
            rcInplaceControl,
            nLastEditedColNo,
            nLastEditedRowNo
            )
      , m_bInValidation( false )
      , m_bForceDisableInitSelText( false )
      , m_strTextPrevious( _T("") )
      , m_strTextInitial( _T("") )
{
      if( ( cell.GetStyleEx() & __EGCS_EX_NO_INPLACE_CONTROL_SELECTION ) != 0 )
            m_bForceDisableInitSelText = true;
}