?
Solved

Manual TDBLookupCombo Drop down

Posted on 2002-05-29
4
Medium Priority
?
212 Views
Last Modified: 2010-04-04
hi experts, l'm using delphi4 that would like to manually do drop down of TDBLookupCombo. for example, TDBLookupCombo will Drop Down when user press F3 and still remain the Drop Down when click on Button from TDBLookupCombo. how to do that...please help....urgent. thanks.
0
Comment
Question by:Explorer060599
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 7043693
No idea how to drop down a DBLookupComboBox. But thinking .
0
 

Author Comment

by:Explorer060599
ID: 7043790
nope...what i meant was making DBLookupComboBox's DropDown box comes out.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7043833
Set your Forms KeyPreview to True

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin

  if Key = VK_F3 then DBLookupComboBox1.DropDown;

end;


The Crazy One
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 200 total points
ID: 7043841
var
  bF3Invoked: Boolean;

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin

  if Key = VK_F3 then begin
    DBLookupComboBox1.DropDown;
    bF3Invoked := True;
  end;

end;

procedure TForm1.DBLookupComboBox1CloseUp(Sender: TObject);
begin

  if bF3Invoked then begin
    DBLookupComboBox1.DropDown;
    bF3Invoked := False;
  end;

end;
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question