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/

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to