summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/apps/uidesigner/vfdeditors.pas5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/apps/uidesigner/vfdeditors.pas b/examples/apps/uidesigner/vfdeditors.pas
index c5ba41e1..0c4e081f 100644
--- a/examples/apps/uidesigner/vfdeditors.pas
+++ b/examples/apps/uidesigner/vfdeditors.pas
@@ -49,6 +49,7 @@ type
implementation
uses
+ gfxbase,
fpgfx;
{ TItemEditorForm }
@@ -87,9 +88,9 @@ end;
procedure TItemEditorForm.OnButtonClick(Sender: TObject);
begin
if Sender = btnOK then
- ModalResult := 1
+ ModalResult := mrOK
else
- ModalResult := 2;
+ ModalResult := mrCancel;
end;