diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-07-16 08:00:20 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-07-16 08:00:20 +0000 |
commit | 450741d7ec0c09bf1863dde73b0069ce5d3975cc (patch) | |
tree | 5a9484cd671c6b16306f78e11a26bbdbbf6b2038 /prototypes/fpgui2/tests | |
parent | 167e5426af087de59f81423cad14b42f8c1a8cb1 (diff) | |
download | fpGUI-450741d7ec0c09bf1863dde73b0069ce5d3975cc.tar.xz |
* listbox: implemented a Strings ListBox.
* listbox: improved the listbox protected and published properties, but more work is required to clean up the design.
Diffstat (limited to 'prototypes/fpgui2/tests')
-rw-r--r-- | prototypes/fpgui2/tests/edittest.dpr | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/prototypes/fpgui2/tests/edittest.dpr b/prototypes/fpgui2/tests/edittest.dpr index 1dcd1e2c..cb328eec 100644 --- a/prototypes/fpgui2/tests/edittest.dpr +++ b/prototypes/fpgui2/tests/edittest.dpr @@ -37,7 +37,7 @@ type btn2: TfpgButton; btn3: TfpgButton; memo: TfpgMemo; - listbox: TfpgBaseListBox; + listbox: TfpgListBox; combo1: TfpgComboBox; sbar: TfpgScrollBar; procedure AfterCreate; override; @@ -89,6 +89,8 @@ type procedure TMainForm.AfterCreate; + var + i: integer; begin SetPosition(200, 200, 500, 350); WindowTitle := 'fpGUI Widget Test'; @@ -123,11 +125,15 @@ type memo.Width := 200; memo.Height := 80; - listbox := TfpgBaseListBox.Create(self); + listbox := TfpgListBox.Create(self); listbox.Top := 100; listbox.Left := 250; listbox.Width := 200; listbox.Height := 80; + for i := 1 to 20 do + listbox.Items.Add(Format('Items %.2d', [i])); + listbox.FocusItem := 3; + sbar := TfpgScrollBar.Create(self); sbar.Top := 160; |