|
|
|
|
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.
Subject |
Author |
Date |
|
leo feng
|
Jan 8, 2007 - 2:01 AM
|
How to Get Additional Checkbox value of Grid cell in CExtPropertyGridCtrl
|
|
leo feng
|
Jan 8, 2007 - 6:53 PM
|
I Means to hold 2 values in one cell (one checkbox and one other value),but invoke GetStyle can’t display any change about __EGCS_CHECKED style in OnPgcInputComplete function
|
|
leo feng
|
Jan 8, 2007 - 6:53 PM
|
I Means to hold 2 values in one cell (one checkbox and one other value),but invoke GetStyle can’t display any change about __EGCS_CHECKED style in OnPgcInputComplete function
|
|
Suhai Gyorgy
|
Jan 8, 2007 - 3:53 AM
|
Sorry, I messed up tagging. I hope my post is still understandable.
|
|
Suhai Gyorgy
|
Jan 8, 2007 - 3:51 AM
|
It’s not exactly clear what you are asking. Are you trying to assign some text values to the checked-unchecked state of a checkbox? I mean if the user checks the checkbox, the text of the cell should change from (for example) "Unavailable" to "Available" and back. This can be achieved if you use CExtGridCellBool for your cell type and when initializing it, call pCellBool->ModifyStyle(__EGCS_CHK_CHECK|__EGCS_ICA_HORZ_CENTER|__EGCS_ICA_VERT_CENTER|__EGCS_NO_INPLACE_CONTROL); pCellBool->LabelTextSet( true, _T("Available") ); pCellBool->LabelTextSet( false, _T("Unavailable") ); If your goal is to hold 2 values in one cell (one boolean and one other value): I’m not sure about properly working solution for that one. Try setting __EGCS_CHK_CHECK style when initializing and maybe you can "read" value of checkbox by testing whether __EGCS_CHECKED style is present with GetStyle.
|
|