[Lazarus] Default buttons in IDE dialog don't seem to work

Michael Van Canneyt michael at freepascal.org
Thu Aug 6 12:44:24 CEST 2015



On Thu, 6 Aug 2015, Graeme Geldenhuys wrote:

> Hi,
>
> I use the "Run Parameters" dialog a lot. I change the "Command Line
> Parameters" value frequently, and when I hit ENTER I expect the dialog
> to close, but it doesn't.
>
> I looked at the code (runparamsopts.pas) and it uses a ButtonPanel and
> the DefaultButton = pkOK, so why doesn't hitting ENTER do the same as
> when I click the OK button?

The OK button is not necessarily activated by default.
You need to activate that behaviour: it should be set as 'Default'.

Michael.




More information about the Lazarus mailing list