summaryrefslogtreecommitdiff
path: root/examples/gui/command_interface/test.lpr
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-11-29 08:54:34 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-11-29 08:54:34 +0000
commit709237f47fd404fc163ca5f2d7532f08647a9e05 (patch)
treed7fd6dab9ae4a538369cb76ae8ee35bbea5ff159 /examples/gui/command_interface/test.lpr
parent9eb3c0612e792949d450509236bf12500c559eb6 (diff)
downloadfpGUI-709237f47fd404fc163ca5f2d7532f08647a9e05.tar.xz
* Created a new overloaded CentrePoint function.
* Implemented a new method TfpgPopupMenu.MenuItemByName * Created a example project showing how the ICommand and ICommandHolder interfaces can be used.
Diffstat (limited to 'examples/gui/command_interface/test.lpr')
-rw-r--r--examples/gui/command_interface/test.lpr32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/gui/command_interface/test.lpr b/examples/gui/command_interface/test.lpr
new file mode 100644
index 00000000..663e2e2f
--- /dev/null
+++ b/examples/gui/command_interface/test.lpr
@@ -0,0 +1,32 @@
+program test;
+
+{$mode objfpc}{$H+}
+
+uses
+ {$IFDEF UNIX}{$IFDEF UseCThreads}
+ cthreads,
+ {$ENDIF}{$ENDIF}
+ Classes, fpgfx, gui_form, frm_main, commands, fpgui_package;
+
+
+procedure MainProc;
+var
+ frm: TMainForm;
+begin
+ fpgApplication.Initialize;
+ Randomize;
+ frm := TMainForm.Create(nil);
+ try
+ frm.Show;
+ fpgApplication.Run;
+ finally
+ frm.Free;
+ end;
+end;
+
+begin
+ MainProc;
+end.
+
+
+