DBGrid Picklist

How would I get the get a DBGrid column with a picklist to act like a listbox selecting the best choice as the user types? I'm developing an application for advanced computer users who don't like using the mouse, so these little things are appreciated.

Thanks
Ben

Comments

  • Ben,

    I suggest you to open a dropdown list with items automatically when user'll select a cell in this column.

    To open a dropdown list you can just send a few key pressings:
    keybd_event(VK_F2, 0, 0, 0);
    keybd_event(VK_F2, 0, KEYEVENTF_KEYUP, 0);
    keybd_event(VK_MENU, 0, 0, 0);
    keybd_event(VK_DOWN, 0, 0, 0);
    keybd_event(VK_DOWN, 0, KEYEVENTF_KEYUP, 0);
    keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0);

    I used this method in own freeware TSMDBGrid component - check the www.scalabium.com

    With best regards, Mike Shkolnik
    [email protected]

    : How would I get the get a DBGrid column with a picklist to act like a listbox selecting the best choice as the user types? I'm developing an application for advanced computer users who don't like using the mouse, so these little things are appreciated.
    :
    : Thanks
    : Ben
    :


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion