summaryrefslogtreecommitdiff
path: root/prototypes/fpgui2
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-04 08:24:02 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-04 08:24:02 +0000
commit70b69ec87533ef55cd8982c95e467b01a3a544b5 (patch)
treef7b9a5536fdcd2688b3c01edd5b67048ef306a95 /prototypes/fpgui2
parent214510635fcf4c37bef52ee7be7ab1be280e9d55 (diff)
downloadfpGUI-70b69ec87533ef55cd8982c95e467b01a3a544b5.tar.xz
* Applied patch from Jean-Marc creating new properties for ComboBox and ListBox.
* Modified the edittest example to show the new changes in action.
Diffstat (limited to 'prototypes/fpgui2')
-rw-r--r--prototypes/fpgui2/tests/edittest.lpr17
1 files changed, 9 insertions, 8 deletions
diff --git a/prototypes/fpgui2/tests/edittest.lpr b/prototypes/fpgui2/tests/edittest.lpr
index ecd50d71..d9f860bd 100644
--- a/prototypes/fpgui2/tests/edittest.lpr
+++ b/prototypes/fpgui2/tests/edittest.lpr
@@ -82,7 +82,6 @@ type
combo2: TfpgComboBox;
sbar: TfpgScrollBar;
xpluna: TXPButton;
- xp2: TXPButton;
xpsilver: TXPButton;
checkbox1: TfpgCheckBox;
checkbox2: TfpgCheckBox;
@@ -362,8 +361,12 @@ begin
radiobtn1.Enabled := not checkbox1.Checked;
radiobtn2.Enabled := not checkbox1.Checked;
radiobtn3.Enabled := not checkbox1.Checked;
+ combo1.Enabled := not checkbox1.Checked;
combo2.Enabled := not checkbox1.Checked;
edit1.Enabled := not checkbox1.Checked;
+ listbox.Enabled := not checkbox1.Checked;
+ xpluna.Enabled := not checkbox1.Checked;
+ xpsilver.Enabled := not checkbox1.Checked;
end;
procedure TMainForm.TrackBarChanged(Sender: TObject; APosition: integer);
@@ -417,8 +420,11 @@ begin
btn.ShowImage := True;
combo1 := CreateComboBox(self, 10, 160, 120, nil);
+ combo1.BackgroundColor := clYellow;
+ combo1.TextColor := clRed;
for i := 1 to 5 do
combo1.Items.Add(Format('Items %.2d', [i]));
+
combo2 := CreateComboBox(self, 10, 190, 120, nil);
for i := 1 to 20 do
combo2.Items.Add(Format('Items %.2d', [i]));
@@ -435,6 +441,8 @@ begin
listbox.Left := 250;
listbox.Width := 200;
listbox.Height := 80;
+ listbox.TextColor := clRed;
+ listbox.BackgroundColor := clYellow;
for i := 1 to 20 do
listbox.Items.Add(Format('Items %.2d', [i]));
listbox.FocusItem := 3;
@@ -452,13 +460,6 @@ begin
xpluna.Width := 75;
xpluna.Text := 'XP Luna';
- xp2 := TXPButton.Create(self);
- xp2.Left := 335;
- xp2.Top := 200;
- xp2.Width := 75;
- xp2.Text := 'XP Button2';
- xp2.Enabled := False;
-
xpsilver := TXPButton.Create(self);
xpsilver.Left := 250;
xpsilver.Top := 230;