Solved

Manual TDBLookupCombo Drop down

Posted on 2002-05-29
4
182 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
  • 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 50 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now