Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the active element on the form.
#1
There is a desire to press the Enter key to go to the next information input field.
The option with event processing does not work.

procedure TfmPayTovarEd.edKOLAsyncKeyPress(Sender: TObject;
  EventParams: TStringList);
var
mValue  : String;
begin
  mValue := EventParams.Values['which'];
  if EventParams.Values['which'] = '13' then
  begin
    ActiveControl := edEDIZM;
    Self.Refresh;
  end;
end;


In Delphi, I constantly use the "ActiveControl := edEDIZM;" And for some reason it doesn't work in IW. Can you tell me how to do this?
Reply


Messages In This Thread
How to change the active element on the form. - by Сергей Александрович - 07-22-2021, 09:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)