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 CExtGridCellCheckListComboBox Collapse All
Subject Author Date
Offer Har Jan 12, 2009 - 10:12 AM

Dear Support,


We build out system for power-users who try to do as much as possible from the keyboard.


We have an CExtGridCellCheckListComboBox defined with the __EGCS_NO_INPLACE_CONTROL style.


The way the user edit the list is as possible.


1) Navigate to the cell with the arrows.


2) Drop down the list with the F2 key.


3) Check/un-check items with the up/down arrows and the space button.


4) Close the drop-list by pressing the Enter key.


All this works fine, but the when the user presses the Enter key all the selected items but the last are un-selected, that is, the means that the Enter key does some operation on the list of selected items it shouldn’t. We guess that comes from the base class.


Please fix.


Thanks,


Ron.


 

Technical Support Jan 20, 2009 - 1:16 PM

Please insert the following method into the CExtGridCellCheckListComboBox class:

   virtual bool OnPopupListBoxSelEndOK(
                        CExtPopupInplaceListBox & wndListBox,
                        CExtGridCell::TrackCellStateInfo_t & _tcsi
                        );

bool CExtGridCellCheckListComboBox::OnPopupListBoxSelEndOK(
            CExtPopupInplaceListBox & wndListBox,
            CExtGridCell::TrackCellStateInfo_t & _tcsi
            )
{
            ASSERT_VALID( this );
            ASSERT( (&_tcsi.m_cell) == this );
            ASSERT_VALID( (&wndListBox) );
            ASSERT_VALID( (&_tcsi.m_wndGrid) );
            wndListBox;
            _tcsi.m_bHelperSelChanged = false;
            return false;
}

Technical Support Jan 20, 2009 - 5:25 AM

The current keyboard behavior is:

1) you can select many options in the popup list box using space key and then close popup list box with escape key

2) enter key can be used for selecting only one option and unselecting all the other options

This behavior can be reproduced without 8-step sequence you described. Please advise us which other behavior would you prefer?

Offer Har Jan 20, 2009 - 6:01 AM

The enter you should not remove all the selection - it should only close the drop list - access the current state of the item checks.

Technical Support Jan 13, 2009 - 4:33 AM

We tried to reproduce this problem using the ProfUIS_Controls sample application. The Grid page contains grid control with column containing check-list grid cells. The grid cell displaying Item 6, Item 7 text in this column look like exactly the same configured grid cell in your project. But we can’t find anything wrong with behavior of the VK_RETURN key on this grid cell.

Offer Har Jan 13, 2009 - 5:27 AM

Dear Support,

I checked it again and bug is there and very simple to reproduce it. Please follow my steps carefully and slowly:
1. Go to the CheckComboBox column in the ProfUIS_Controls
2. click on the second from bottom cell in the column with the mouse (the one with no selection, not the disabled one, which is the last one)
3. Drop the list with the mouse (F2 just bring you into edit, because you have in-place edit enabled)
4. NOW LEAVE THE MOUSE
5. Press the down arrow and then press space -> Item1 will be checked
6. Press the down arrow and then press space -> Item2 will be checked
7. Press the down arrow and then press space -> Item3 will be checked
8. Press Enter to close the list

The only check left will be to Item3.

Please let me know you were able to reproduce it.

Regards,
Ron.