BenPols
asked on
Using Enter/Return insteat of Tabs
Developing in Delphi5 I need to default the total system to accept Enter/Return instead of Tab.
Is there a global instruction I can give the Project to default to this setting, and if so, what is it.
Thanks
Ben
Is there a global instruction I can give the Project to default to this setting, and if so, what is it.
Thanks
Ben
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hi benpols,
assign all OnKeypress-events of the controls,
where you want to perform this, to this procedure:
procedure TForm1.EditKeyPress(Sender : TObject; var Key: Char);
begin
if (key = #13) then
begin
PostMessage(Self.Handle,WM _NEXTDLGCT L,0,0);
key := #0;
end;
end;
meikl
assign all OnKeypress-events of the controls,
where you want to perform this, to this procedure:
procedure TForm1.EditKeyPress(Sender
begin
if (key = #13) then
begin
PostMessage(Self.Handle,WM
key := #0;
end;
end;
meikl
Just go to www.undu.com and download the free component (with source) doing that.