summaryrefslogtreecommitdiff
path: root/prototypes/fpgui2/tests
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-14 12:38:29 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-14 12:38:29 +0000
commitc39790ae56441cb41f1aa97e016f7dfcc30557fd (patch)
treed944232e43ec566af534a0cebc93a6f859bc1a80 /prototypes/fpgui2/tests
parent337ee2c72452d9ad5520d463c355d6d6dd1f6c5d (diff)
downloadfpGUI-c39790ae56441cb41f1aa97e016f7dfcc30557fd.tar.xz
* fpgui2: Added a new gui_dialogs unit. This is where most dialogs will
be defined. * Implemented a ShowMessage() method with a TfpgMessageBox window. It wraps long lines, but a few more improvements need to be made.
Diffstat (limited to 'prototypes/fpgui2/tests')
-rw-r--r--prototypes/fpgui2/tests/edittest.dpr16
1 files changed, 15 insertions, 1 deletions
diff --git a/prototypes/fpgui2/tests/edittest.dpr b/prototypes/fpgui2/tests/edittest.dpr
index 2ce1cb9c..5285da71 100644
--- a/prototypes/fpgui2/tests/edittest.dpr
+++ b/prototypes/fpgui2/tests/edittest.dpr
@@ -15,7 +15,8 @@ uses
gui_combobox,
gui_scrollbar,
uhelpers,
- gui_memo;
+ gui_memo,
+ gui_dialogs;
type
@@ -25,6 +26,7 @@ type
private
procedure btnCloseClick(Sender: TObject);
procedure btnDisplayBMP(Sender: TObject);
+ procedure btn3Click(Sender: TObject);
public
label1: TfpgLabel;
label2: TfpgLabel;
@@ -72,6 +74,17 @@ type
bmp.Free;
end;
+ procedure TMainForm.btn3Click(Sender: TObject);
+ begin
+ ShowMessage('Do you really want to quit this application?' + #10 +
+ 'We can always keep playing and quite at a later date.' +
+ #10#10 +
+ 'This is a very long line that has to must be split automatically ' +
+ 'and it should have done so. If not there is a bug in the code. We ' +
+ 'must still optimize where it cuts the lines.'
+ , 'My cool message title');
+ end;
+
procedure TMainForm.AfterCreate;
begin
@@ -92,6 +105,7 @@ type
btn2.OnClick := @btnDisplayBMP;
btn3 := CreateButton(self, 100, 100, 75, 'Embedded', nil);
btn3.Embedded := True;
+ btn3.OnClick := @btn3Click;
btn := CreateButton(self, 10, 130, 75, 'Close', @btnCloseClick);