Solved

Manual TDBLookupCombo Drop down

Posted on 2002-05-29
4
201 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 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

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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