Jump to content


Biblin's Content

There have been 2 items by Biblin (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#16516 Inconsistent NxComboBoxColumn Editing Behaviour

Posted by Biblin on 20 February 2012 - 07:37 PM in NextGrid Component

Hero.

Thanks for the quick response.



#16514 Inconsistent NxComboBoxColumn Editing Behaviour

Posted by Biblin on 20 February 2012 - 03:21 PM in NextGrid Component

Hi,

There seems to be some inconsistency in the way that you select items from an NxComboBoxColumn when AutoDropDown is set to true (style = dsDropDown)

If you click the button to drop down the list, you can select an item with a single click.
However if you type into the edit part, causing it to automatically drop down (AutoDropDown = true), it requires two clicks to select an item.

Looking at the code for NxPopupControl, this appears to be caused by the FFullOpened field. If the button is used, MouseDown triggers the Popup function, and MouseUp causes FFullOpened to be set to true.

However if you cause it to automatically drop down, the Popup function is still called (as a result of the KeyPress event), but there is no MouseUp event - meaning that FFullOpened does not get set to true. This means you then have to click the item once to kick off a MouseUp event which sets FFullOpened to true, and then a second time to actually select the item.


I'd guess this issue occurs for any scenario where it drops down without a mouse click (e.g. setting DroppedDown := true).

Cheers,

Biblin