summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-26 13:41:24 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-26 13:41:24 +0000
commit3abd19af870b83175359c2e1e0af063123d14635 (patch)
tree710d5a55d481634dfa7c08a6e99e81ffdf319272 /src/corelib
parent1c2e942655c6280bc46b7a0eedefb827a7aca0ca (diff)
downloadfpGUI-3abd19af870b83175359c2e1e0af063123d14635.tar.xz
* Minor fixes with DrawControlFrame and ComboBox down button.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpgfx.pas16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/corelib/fpgfx.pas b/src/corelib/fpgfx.pas
index a6a09c5c..8ffcc02e 100644
--- a/src/corelib/fpgfx.pas
+++ b/src/corelib/fpgfx.pas
@@ -832,20 +832,20 @@ end;
procedure TfpgStyle.DrawControlFrame(ACanvas: TfpgCanvas; x, y, w, h: TfpgCoord);
begin
ACanvas.SetColor(clShadow1);
- ACanvas.DrawLine(x, y, x + w - 1, y);
- ACanvas.DrawLine(x, y + h - 1, x, y);
+ ACanvas.DrawLine(x, y, x + w - 1, y); // top (outer)
+ ACanvas.DrawLine(x, y + h - 1, x, y); // left (outer)
ACanvas.SetColor(clShadow2);
- ACanvas.DrawLine(x + 1, y + 1, x + w - 2, y + 1);
- ACanvas.DrawLine(x + 1, y + h - 2, x + 1, y + 1);
+ ACanvas.DrawLine(x + 1, y + 1, x + w - 2, y + 1); // top (inner)
+ ACanvas.DrawLine(x + 1, y + h - 2, x + 1, y + 1); // left (inner)
ACanvas.SetColor(clHilite2);
- ACanvas.DrawLine(x + 1, y + h - 1, x + w - 1, y + h - 1);
- ACanvas.DrawLine(x + w - 1, y + 1, x + w - 1, y + h - 1);
+ ACanvas.DrawLine(x + 1, y + h - 1, x + w, y + h - 1); // bottom (outer)
+ ACanvas.DrawLine(x + w - 1, y, x + w - 1, y + h); // right (outer)
ACanvas.SetColor(clHilite1);
- ACanvas.DrawLine(x + 2, y + h - 2, x + w - 2, y + h - 2);
- ACanvas.DrawLine(x + w - 2, y + 2, x + w - 2, y + h - 2);
+ ACanvas.DrawLine(x + 2, y + h - 2, x + w - 2, y + h - 2); // bottom (inner)
+ ACanvas.DrawLine(x + w - 2, y + 1, x + w - 2, y + h - 1); // right (inner)
end;
procedure TfpgStyle.DrawDirectionArrow(ACanvas: TfpgCanvas; x, y, w, h: TfpgCoord; direction: integer);