Link to home
Create AccountLog in
Avatar of Iamme
IammeFlag for Mexico

asked on

editing a DBLOOKUPCOMBOBOX

how can I saw that the user is writing on a dblookupcombobox,,,,,,is it impossible..................?.................can you tell me a propierty..or a method that let me see the letteres that user is typing...........
I'm in a hurry
ASKER CERTIFIED SOLUTION
Avatar of ZifNab
ZifNab

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of inthe
inthe

hi,
i would use
procedure TForm1.DBLookupComboBox1KeyPress(Sender: TObject; var Key: Char);
begin
 Label1.Caption := DBLookupComboBox1.Text;
end;

as using the showmessage(key) will only show the last pressed key .
Hi Inthe,

The thing is Iamme, asked for a method to see the letters a user is typing. So I pointed to the keypress event. The showmessage was just a way to show that it intercepted the keypress of the user.

Iamme hasn't told what he wants to do with the event, therefor this stupid example.

Zif.
Hi Iamme

  you can try this

  place a label next to dblookupcombo box

  in the exit event of dblookupcompo box write this

  label.caption := dblookupcompoboxname.text;

  will it ok for you

Regards

pandian