Subject | RE: [IBO] Trapping the TAB-key |
---|---|
Author | Nico Callewaert |
Post date | 2001-04-18T05:25:52Z |
Good morning Freddy,
First of all, you have to set the KeyPreview property of the form to
True. Then you can write a KeyUp event for the form like this :
procedure TPurchase_Frm.FormKeyUp(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_TAB then
Key := 0;
end;
HTH,
Nico Callewaert
ncw@...
nico.callewaert@...
-----Oorspronkelijk bericht-----
Van: Freddy Holst Christensen [mailto:freddy_holst_c@...]
Verzonden: dinsdag 17 april 2001 22:36
Aan: IBObjects@yahoogroups.com
Onderwerp: [IBO] Trapping the TAB-key
HEY All
I'm about to have my first program with IBObjects and InterBase up and
running.
But have run into a problem.
For one of the tables I just show the user one of the fields in a grid as
orientation.
The rest I edited through a TIB_Edit field, and the TAB key is used to
move between fields.
One of fields is of a special format, and I want to trap the TAB-key, in
order to do
some checking of the contens before proceeding.
I tried to use the different OnKey.... events, and also tried to catch the
error that occurs when the content is not complete.
But without luck.
I will be thankfull for any ideas.
Regards
Freddy
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
Click Here to Find Software Faster
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
First of all, you have to set the KeyPreview property of the form to
True. Then you can write a KeyUp event for the form like this :
procedure TPurchase_Frm.FormKeyUp(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_TAB then
Key := 0;
end;
HTH,
Nico Callewaert
ncw@...
nico.callewaert@...
-----Oorspronkelijk bericht-----
Van: Freddy Holst Christensen [mailto:freddy_holst_c@...]
Verzonden: dinsdag 17 april 2001 22:36
Aan: IBObjects@yahoogroups.com
Onderwerp: [IBO] Trapping the TAB-key
HEY All
I'm about to have my first program with IBObjects and InterBase up and
running.
But have run into a problem.
For one of the tables I just show the user one of the fields in a grid as
orientation.
The rest I edited through a TIB_Edit field, and the TAB key is used to
move between fields.
One of fields is of a special format, and I want to trap the TAB-key, in
order to do
some checking of the contens before proceeding.
I tried to use the different OnKey.... events, and also tried to catch the
error that occurs when the content is not complete.
But without luck.
I will be thankfull for any ideas.
Regards
Freddy
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
Click Here to Find Software Faster
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]