Quote: |
3. Even better, the dropdown is polymorphic. When there are too many candiates, it may be easier to put in a TreeView, and when user input has filtered out but a limited number, a list may make more sense. |
Quote: |
By the way, the DropGrid example included with U++ package is very impressive. I particularly like the capability to set display columns and value columns (you can choose to hide the actual value column, eg, ID make a lot of sense to database but means little to end user. |
Quote: |
Unfortunately it uses a button to trigger dropdown. A user should be able to click the little triangle to the right or use certain key combination to show the popdown list. |
bool GridCtrl::Key(dword key, int) { if(!IsReadOnly()) switch(key) { case K_ENTER: ClearSelection(); #ifdef LOG_CALLBACKS LGR(2, "WhenEnter()"); WhenEnter();//<-****THIS LINE**** #endif