Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
DBGrid Picklist Posted by garwain on 24 Jul 2001 at 6:58 AM
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

Report
Re: DBGrid Picklist Posted by mshkolnik on 27 Jul 2001 at 3:49 AM
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
mshkolnik@yahoo.com

: 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
:





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.