[lazarus] Bug: Setting checkbox.checked triggers onclick
Michael Van Canneyt
michael.vancanneyt at wisa.be
Mon Mar 24 02:57:43 EST 2003
On 23 Mar 2003, Tony Maro wrote:
> It's not _supposed_ to do that is it?
Let's say that it doesn't do that in Delphi.
> I'm trying to detect when a user checks the box so I can enable a save
> button, but if I change from one record to another and programmatically
> set the .enabled property it triggers the onclick event for the
This is a good point, which depends actually on the toolkit used.
Personally, I think that the event 'OnClick' should be separated out in
'OnClick' (clicked by user) and 'OnChange' (State of checkbox changed)
But this will give compatibility problems.
If I recall correctly, Kylix has the same problem because Qt handles
it differently from native Win32.
More information about the Lazarus