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 General Discussion » Disable text change in CExtGridCellCheckBox Collapse All
Subject Author Date
Douglas Hoppes Apr 29, 2009 - 1:14 PM

Is there any way that I can disable the text change in the CExtGridCellCheckBox? I just want the user to turn off/on the text box. Even if I use SetAutoTextMode, the user can still change the text (I have the mode set to false, so that there is no text showing).

Doug

Technical Support Apr 30, 2009 - 7:42 AM

The Grid dialog page in the ProfUIS_Controls sample application contains a column with check box cells. There are check boxes with and without auto changeable text in this column. These check boxes are initialized in the CPageGrid::_InitColumnCheckBox() method. The CExtGridCell::TextSet() method should be used to assign the label text to the CExtGridCellCheckBox grid cell if it does not use auto changeable label. The CExtGridCellCheckBox::LabelTextSet() should be used to assign changeable label’s text. In any case, the CExtGridCell::TextSet() and CExtGridCellCheckBox::LabelTextSet() methods should be invoked after the CExtGridCellCheckBox::SetAutoTextMode() method.