diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-03 13:33:37 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-03 13:33:37 +0000 |
commit | f742b03ed3afc5b55df65a6bb8a3e2984479ac4b (patch) | |
tree | ae97eef9ef5d32ffd35641dafa79fd8f55e1f690 /src/gui/gui_panel.pas | |
parent | efba2eb356e50dc12e1da032c0b9a796463844ae (diff) | |
download | fpGUI-f742b03ed3afc5b55df65a6bb8a3e2984479ac4b.tar.xz |
* EditTest in the prototypes directory now tests Button ImageLayout property.
* TfpgBevel has been added to the UI Designer component palette.
* TfpgBevel is used in the UI Designer and Shape=Spacer it paints itself different in the UI Designer, so it's more visible. At runtime it doesn't paint like that.
Diffstat (limited to 'src/gui/gui_panel.pas')
-rw-r--r-- | src/gui/gui_panel.pas | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/gui_panel.pas b/src/gui/gui_panel.pas index fc9df44d..2dc848b5 100644 --- a/src/gui/gui_panel.pas +++ b/src/gui/gui_panel.pas @@ -306,6 +306,19 @@ begin Canvas.DrawLine(Width - 1, 0, Width - 1, Height - 1); if Shape in [bsBox, bsFrame, bsBottomLine] then Canvas.DrawLine(0, Height - 1, Width, Height - 1); + + // To make it more visible in the UI Designer + if csDesigning in ComponentState then + begin + if Shape in [bsSpacer] then + begin + Canvas.SetColor(clInactiveWgFrame); + Canvas.SetLineStyle(1, lsDash); + Canvas.DrawRectangle(0, 0, Width, Height); +// Canvas.SetTextColor(clText1); +// Canvas.DrawString(2, 2, Name + ': ' + Classname); + end; + end; end; {TfpgPanel} |