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 |
|
Adam Keadey
|
Apr 27, 2007 - 3:04 PM
|
I want to hide the date and time cell button for modifying the date and time.
I want the sort capabilities of the date and time ctrl, but not the editing features
|
|
Technical Support
|
Apr 28, 2007 - 12:28 PM
|
You can make any grid cell read-only using this method pCell->ModifyStyle( __EGCS_READ_ONLY ); The in-place editor window for a particular grid cell will not be activated if you modify the cell styles in this way pCell->ModifyStyle( __EGCS_NO_INPLACE_CONTROL );
|
|
Adam Keadey
|
Apr 30, 2007 - 4:40 AM
|
While this disabled the ability to change the date and time, the dropdown button is still visible. I want to hide the button.
How do I do that???
|
|
Technical Support
|
Apr 30, 2007 - 2:15 PM
|
Any grid cell supports 3 built-in buttons: up-down, drop-down and ellipsis. This is controlled with the following styles:
__EGCS_BUTTON_UPDOWN
__EGCS_BUTTON_DROPDOWN
__EGCS_BUTTON_ELLIPSIS .
You can add/remove these styles using CExtGridCell::ModifyStyle() .
|
|
Adam Keadey
|
May 1, 2007 - 4:55 AM
|
Thank you for the response.
I went ahead and derived a control from CExtGridCellNumber and stored the seconds from 1970 as the number. Then overrode the TextGet function to return the formatted date and time.
I do some custom drawing so this actually works better cause I derived from my number class.
|
|