Link to home
Start Free TrialLog in
Avatar of BenPols
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

Avatar of Gurkan
Gurkan

Hi,
Just go to www.undu.com and download the free component (with source) doing that.
ASKER CERTIFIED SOLUTION
Avatar of f15iaf
f15iaf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kretzschmar
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_NEXTDLGCTL,0,0);
    key := #0;
  end;
end;

meikl