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 » CExtGridCellCheckBox::Empty Collapse All
Subject Author Date
Offer Har Feb 17, 2008 - 4:26 PM

Dear Support,

I see that the implementation of this function is set the check-box to not checked.
In all other controls, like color or number, it clears the cell to no value (’?’ in color, empty in number)
I think that intermediate state (2) is more suitable for and empty check-box rather then a un-checked check-box.

Let me know what you (or other users....) think.

Thanks,
Ron.

Offer Har Feb 18, 2008 - 11:37 AM

Cool - I will try that out.

Technical Support Feb 18, 2008 - 11:35 AM

Yes, this feature is applicable to all the cell classes.

Offer Har Feb 18, 2008 - 11:16 AM

Does this work for all cell types?
I have a generic function that decides weather a cell should be empty, regardless of the cell type, that’s why I used the virtual function Empty.

Technical Support Feb 18, 2008 - 11:13 AM

You can invoke pCell->ModifyStyleEx( __EGCS_EX_EMPTY ) to mark a grid cell as empty without clearing its data.

Offer Har Feb 18, 2008 - 6:10 AM

My problem is that it breaks the consistency - in all other cells Empty moves to a ’don’t-know’ state (think of a property grid), and in a check-box it’s not the same.

Maybe in CExtGridCellBool Empty should be to uncheck, and in CExtGridCellComboBox it should intermediate.
Or, you can add a flag/style to CExtGridCellComboBox for deciding on what is the default Empty implementation.

Technical Support Feb 18, 2008 - 4:15 AM

This is a really difficult question about the really simple thing. At least it raises one more question and explanation at the same time: the check box cell is a kind of cell whose Enable() method should never be called and we have no idea what is the emptying of the check box? We supposed the closes meaning of the emptying of the check box control is making it un-checked.