summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-04-02 10:44:50 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-04-02 10:44:50 +0000
commitc6b4cfc9c3ff49f31db7fd3551b908687b734957 (patch)
tree0406aae50d911990c3939bb460137bf2fe6d63da /src/corelib
parent41ba687909bdea436ad677c145c5504215510552 (diff)
downloadfpGUI-c6b4cfc9c3ff49f31db7fd3551b908687b734957.tar.xz
* Applied patch (#1930945) from Jean-Marc which introduces a new component in gui_panel.
* Added the gui_panel demo to the examples directory. * Applied a minor painting fix to the Panel groupbox style. * Extended the gui_panel demo to show the Raised and Lowered look.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpgfx.pas1
-rw-r--r--src/corelib/gfx_widget.pas21
2 files changed, 10 insertions, 12 deletions
diff --git a/src/corelib/fpgfx.pas b/src/corelib/fpgfx.pas
index 65977f62..78a00317 100644
--- a/src/corelib/fpgfx.pas
+++ b/src/corelib/fpgfx.pas
@@ -24,6 +24,7 @@ type
TOrientation = (orVertical, orHorizontal);
TAlign = (alNone, alTop, alBottom, alLeft, alRight, alClient);
+ TLayout = (tlTop, tlCenter, tlBottom);
TAnchor = (anLeft, anRight, anTop, anBottom);
TAnchors = set of TAnchor;
diff --git a/src/corelib/gfx_widget.pas b/src/corelib/gfx_widget.pas
index 74a9ff6d..cd096005 100644
--- a/src/corelib/gfx_widget.pas
+++ b/src/corelib/gfx_widget.pas
@@ -110,7 +110,7 @@ type
procedure SetFocus;
procedure KillFocus;
procedure MoveAndResizeBy(dx, dy, dw, dh: TfpgCoord);
- procedure SetPosition(aleft, atop, awidth, aheight: TfpgCoord);
+ procedure SetPosition(aleft, atop, awidth, aheight: TfpgCoord); virtual;
procedure Invalidate; // double check this works as developers expect????
property FormDesigner: TObject read FFormDesigner write FFormDesigner;
property Parent: TfpgWidget read GetParent write SetParent;
@@ -532,18 +532,15 @@ var
begin
FOnScreen := True;
FVisible := True;
-// writeln(Classname, ' TfpgWidget.HandleShow - FVisible = ', FVisible);
- if FVisible then
- begin
- AllocateWindowHandle;
- DoSetWindowVisible(True);
- for n := 0 to ComponentCount - 1 do
- begin
- c := Components[n];
- if (c is TfpgWidget) and (TfpgWidget(c).Parent = self) then
- TfpgWidget(c).HandleShow;
- end;
+ AllocateWindowHandle;
+ DoSetWindowVisible(True);
+
+ for n := 0 to ComponentCount - 1 do
+ begin
+ c := Components[n];
+ if (c is TfpgWidget) and (TfpgWidget(c).Parent = self) then
+ TfpgWidget(c).HandleShow;
end;
end;