diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-07 15:24:30 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-07 15:24:30 +0000 |
commit | bb4616fa1af67de6012a714fe7158b61fa1b0c1a (patch) | |
tree | 24ab2f46e3bd8afe2af610ffd080eb416b0888ce /src/gui/gui_combobox.pas | |
parent | 27b4260ca539231514aa053706c060eff1568695 (diff) | |
download | fpGUI-bb4616fa1af67de6012a714fe7158b61fa1b0c1a.tar.xz |
* Changed the parameters of DrawRectangle, FillRectangle to rather use Width and Height.
* DrawLine and DrawRectangle now use the same coordinate system as Windows does.
* I need to fixed corrupted painting in widgets due to this.
Diffstat (limited to 'src/gui/gui_combobox.pas')
-rw-r--r-- | src/gui/gui_combobox.pas | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/gui_combobox.pas b/src/gui/gui_combobox.pas index 3d13e6ae..8b3684b9 100644 --- a/src/gui/gui_combobox.pas +++ b/src/gui/gui_combobox.pas @@ -268,7 +268,7 @@ begin // inherited HandlePaint; Canvas.ClearClipRect; r := Rect(0, 0, Width-1, Height-1); - Canvas.DrawControlFrame(0, 0, Width, Height); + Canvas.DrawControlFrame(0, 0, Width-1, Height-1); // internal background rectangle (without frame) InflateRect(r, -2, -2); @@ -278,7 +278,8 @@ begin Canvas.SetColor(FBackgroundColor) else Canvas.SetColor(clWindowBackground); - Canvas.FillRectangle(r); + Canvas.FillRectangle(r.Left, r.Top, Width-4, Height-4); +// Canvas.FillRectangle(r); // fpgStyle.DrawButtonFace(canvas, width - min(height, 20)-3, 2, height-4, height-4, [btnIsEmbedded]); // fpgStyle.DrawDirectionArrow(canvas, width - height + 1, 1, height-2, height-2, 1); |