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

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Aug 6 13:34:43 CEST 2015


On 2015-08-06 11:36, Graeme Geldenhuys wrote:
> 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?

Ha, I just thought of something. The Run Parameters dialog has TEdit and
TComboBox (the edit kind) components. The value I'm editing is in the
edit combobox, and that seems to prevent the "default button" behaviour
from working.

If I place the edit cursor inside a TEdit and hit ENTER, then the dialog
closes as expected.

Is this a known issue? Is there a work-around? This issue is driving me
crazy.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the Lazarus mailing list