summaryrefslogtreecommitdiff
path: root/prototypes/fpgui2
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-26 15:16:16 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-26 15:16:16 +0000
commitfa5ed724d54919d67fd30c724bf76bf95a10e8df (patch)
treefb07268e28009f0040f92af7876dd43e72512a07 /prototypes/fpgui2
parente65d5eb90ec9676aef1c9c0c07105dc0bf92c5ae (diff)
downloadfpGUI-fa5ed724d54919d67fd30c724bf76bf95a10e8df.tar.xz
* Added a new Color property to RadioButton, Button and CheckBox.
The text color can now be changed per component. * Fixed up the default values for Color and BackgroundColor for a few components. * Extended the EditTest project to show the Color property in action.
Diffstat (limited to 'prototypes/fpgui2')
-rw-r--r--prototypes/fpgui2/tests/edittest.lpr14
1 files changed, 12 insertions, 2 deletions
diff --git a/prototypes/fpgui2/tests/edittest.lpr b/prototypes/fpgui2/tests/edittest.lpr
index d44bd6c8..5c99685f 100644
--- a/prototypes/fpgui2/tests/edittest.lpr
+++ b/prototypes/fpgui2/tests/edittest.lpr
@@ -333,10 +333,20 @@ begin
'and it should have done so. If not, there is a bug in the code. It ' +
'has also been optimized to wordwrap and not split words over two lines.'
, 'My cool message title');
- if edit1.Color = clBlue then
- edit1.Color := clText1
+ if btn2.Color = clBlue then
+ begin
+ edit1.Color := clText1;
+ btn2.Color := clText1;
+ checkbox2.Color := clText1;
+ radiobtn1.Color := clText1;
+ end
else
+ begin
edit1.Color := clBlue;
+ btn2.Color := clBlue;
+ checkbox2.Color := clBlue;
+ radiobtn1.Color := clBlue;
+ end;
end;
procedure TMainForm.checkbox1Changed(Sender: TObject);