summaryrefslogtreecommitdiff
path: root/src/corelib/x11/fpg_x11.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-10-25 14:53:44 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-10-25 14:53:44 +0200
commitbf8a6f279217408bd21b9bfbadd8416c2b850cb8 (patch)
tree86b1b842de8d6de71ffe1b9c0280233d96dedbfe /src/corelib/x11/fpg_x11.pas
parentd1b0ae55c3a2a70737f298a61952bacb2d8a021e (diff)
downloadfpGUI-bf8a6f279217408bd21b9bfbadd8416c2b850cb8.tar.xz
Improved event firing of OnDoubleClick and OnClick
* Single click produces one OnClick event * On a Double Click in produces a OnClick, then a OnDoubleClick event. Old behaviour used to procuder yet another OnClick at the end. This is not needed. * OnMouseDown and OnMouseUp events behaviour has not changed. The reason we introduce the FOnClickPending instead of fully handling the events in TfpgWidget.MsgMouseUp is because a TfpgButton has slightly different behavior (eg: When clicking on a button, keep mouse down, and move mouse out of button rectangle, then an OnClick must not fire.) The extra FOnClickPending allows us to toggle this behaviour of HandleLButtonUp (which normally fires the OnClick event)
Diffstat (limited to 'src/corelib/x11/fpg_x11.pas')
0 files changed, 0 insertions, 0 deletions