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 » Bug in CExtGridCellDateTime Collapse All
Subject Author Date
Offer Har Apr 14, 2010 - 7:51 AM

Dear Support,


If you add to a CExtGridCellDateTimecell the up-down buttons:



    pCellTime->ModifyStyle(__EGCS_BUTTON_UPDOWN);

you expect that the focused field in the control (hour, month, minutes etc.) will go up & down when clicking on the arrows, however, regardless of the focused field, it’s always the day that keeps on going up and down... Note that using the up-down arrows in the keyboard works properly, only the up-down arrow behaves this way.


Please fix,


Ron.


 

Technical Support Apr 15, 2010 - 7:07 AM

We are not sure whether it is a bug. We would rather call it a feature conflict. The in-place activated date time control allows you to traverse date and/or time fields and use the up-down for editing the selected field. But the grid cell also has its own built-in up-down control which is designed for changing the single and solid cell value rather for changing different parts of the cell value. That’s why the __EGCS_BUTTON_UPDOWN style makes the date/time value iterating through days only.

Offer Har Apr 15, 2010 - 8:14 AM

Please take a look at the implementation of your own CExtDateTimeWnd - in this class the spin buttons do work as I described- so why not in the cells?

Technical Support Apr 16, 2010 - 4:53 AM

Yes the date-time dialog control uses the VK_LEFT and VK_RIGHT arrow keys for navigating through the date time fields. It also uses the VK_UP and VK_DOWN arrow keys for changing the selected date-time field. The dialog controls can be focused using the VK_TAB key pressing with/without the VK_SHIFT keys. This date-time editing dialog control works exactly the same when its created as in-pace cell editor.
The date-time grid cell looks similar to the dialog control. But all the arrow keys are used by the grid control for navigating the focused/selected grid cells. We cannot use the arrow keys in the date-time grid cell without activating its in-place control.

Offer Har Apr 16, 2010 - 6:51 AM

Dear Support,


I’m sorry, but what you wrote is completely not true...  If the date-time cell has focus, the arrows move between cells and move the values up and down exactly as you described and said that does not work for cells.... so you can use the arrows with cells... then the only thing left is to attach the spin control actions to the active field and not only the day - this does not look impossible to me - looks trivial.


Please check you cell controls sample and you’ll see the use of the arrow keys.


Ron.

Offer Har Apr 15, 2010 - 7:17 AM

Dear Support.


1. If you will look at the default MS time controls this is exactly how they work - the spin buttons change the value of the focused field - we just want the same functionality...


2. If it is not meant to be - then why does it change the day...?


We think that this is a very basic behavior of a date-time control.


Ron.