[Lazarus] TBitBtn's OnClick not fired

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu May 21 16:52:43 CEST 2015


Hi,

I've got a form with a panel and a TBitBtn in the panel. The button is
used to close the form, which is shown via ShowModal.

I've got an OnClick event handler for the BitBtn, but when I put a
breakpoint in that event handler it is never reached???

The button's ModalResult = mrNone and Kind = bkClose. The Action
property is also empty.

Unfortunately there is no LCL help on the TBitBtn.Kind property, but
would that affect the OnClick event not being used?

http://lazarus-ccr.sourceforge.net/docs/lcl/buttons/tcustombitbtn.kind.html

Clicking the button does close the modal form though.


Regards,
  - Graeme -

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




More information about the Lazarus mailing list