summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@users.sourceforge.net>2007-05-20 14:20:36 +0000
committerGraeme Geldenhuys <graemeg@users.sourceforge.net>2007-05-20 14:20:36 +0000
commitc5b47d1db64d4b8aea23323bde3b299becb338f8 (patch)
tree54662c440f2cf96c1b5cf74b0607aaae70cc3b61
parent36fc30e611da6008a0cb48bb65491dfe2f7d9f8d (diff)
downloadfpGUI-c5b47d1db64d4b8aea23323bde3b299becb338f8.tar.xz
* Updated the UTF demo to include a TFEdit as well.
-rw-r--r--examples/gui/utfdemo/utfdemo.lpr21
1 files changed, 14 insertions, 7 deletions
diff --git a/examples/gui/utfdemo/utfdemo.lpr b/examples/gui/utfdemo/utfdemo.lpr
index 47db2a89..24658bbf 100644
--- a/examples/gui/utfdemo/utfdemo.lpr
+++ b/examples/gui/utfdemo/utfdemo.lpr
@@ -24,6 +24,7 @@ type
constructor Create(AOwner: TComponent); override;
published
TextLabel: TFLabel;
+ Edit: TFEdit;
end;
@@ -33,9 +34,9 @@ procedure TMainForm.MainFormActivate(Sender: TObject);
var
max: TSize;
begin
- max.cx := 320;
- max.cy := 200;
- Wnd.SetMinMaxClientSize(MinSize, max);
+ max.cx := 250;
+ max.cy := 80;
+ Wnd.SetMinMaxClientSize(max, max);
end;
@@ -47,13 +48,19 @@ begin
Text := 'UTF Demo';
OnActivate := @MainFormActivate;
- FLayout := TFBoxLayout.Create(self);
- FLayout.Parent := self;
+ FLayout := TFBoxLayout.Create(self);
+ FLayout.Orientation := Vertical;
+ FLayout.Parent := self;
InsertChild(FLayout);
TextLabel := TFLabel.Create(self);
- TextLabel.Text := '&Gráficas Magnificacion! Teste';
+ TextLabel.Text := 'Gráficas Magnificacion! Teste';
FLayout.InsertChild(TextLabel);
+
+ Edit := TFEdit.Create(self);
+ Edit.CanExpandWidth := True;
+ Edit.Text := 'Gráficas Magnificacion! Teste';
+ FLayout.InsertChild(Edit);
end;
@@ -61,7 +68,7 @@ var
MainForm: TMainForm;
begin
GFApplication.Initialize;
- MainForm := TMainForm.Create(GFApplication);
+ MainForm := TMainForm.Create(nil);
try
MainForm.Show;
GFApplication.Run;