summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-04 15:01:00 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-04 15:01:00 +0000
commitc780e72b9f7f6d7eb39fcee5b551e4b285f58106 (patch)
tree601d04f58faf50b83b640a826975be85cde06c8f /src/corelib
parentb742ef33b0d8657e556e1182bccd89c224bff844 (diff)
downloadfpGUI-c780e72b9f7f6d7eb39fcee5b551e4b285f58106.tar.xz
* GUI: Moved all MenuItem painting into the Paint event handler.
* GUI: MenuItems OnClick is now triggered on mouse button up (like all other toolkits). * GUI: Clicking outside a menu while it's open doesn't trigger the OnClick event anymore. * Examples: Extended the menu example to show when each menu item's OnClick was triggered. * All the above needs testing under Windows.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/gfx_command_intf.pas6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/gfx_command_intf.pas b/src/corelib/gfx_command_intf.pas
index 3e5133de..61eb89cd 100644
--- a/src/corelib/gfx_command_intf.pas
+++ b/src/corelib/gfx_command_intf.pas
@@ -1,10 +1,14 @@
+{
+ This is based on the Command design pattern. Use Google if you don't
+ know what design patterns are. The Command pattern is very similar to
+ Delphi's TAction feature.
+}
unit gfx_command_intf;
{$mode objfpc}{$H+}
interface
-
type
ICommand = interface(IInterface)
['{28D72102-D883-41A1-9585-D86B24D9C628}']