summaryrefslogtreecommitdiff
path: root/gfx/gdi
diff options
context:
space:
mode:
authorsekelsenmat <sekelsenmat@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-13 05:48:52 +0000
committersekelsenmat <sekelsenmat@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-13 05:48:52 +0000
commit234062f2837a5d707611ea0a54d2fcb4a5b93db1 (patch)
tree43d125cd5b37d92d1cf005c0ae8dfb87a4853902 /gfx/gdi
parent2a4f80da527ce0f4e8ec53004c965fb809b05a37 (diff)
downloadfpGUI-234062f2837a5d707611ea0a54d2fcb4a5b93db1.tar.xz
Added some more properties/methods to TFWindow
Diffstat (limited to 'gfx/gdi')
-rw-r--r--gfx/gdi/gfx_gdi.pas14
1 files changed, 14 insertions, 0 deletions
diff --git a/gfx/gdi/gfx_gdi.pas b/gfx/gdi/gfx_gdi.pas
index b1b21ec2..3a567547 100644
--- a/gfx/gdi/gfx_gdi.pas
+++ b/gfx/gdi/gfx_gdi.pas
@@ -223,6 +223,7 @@ type
procedure SetClientSize(const ASize: TSize); override;
procedure SetMinMaxClientSize(const AMinSize, AMaxSize: TSize); override;
procedure Show; override;
+ procedure Hide; override;
procedure Invalidate; override;
procedure CaptureMouse; override;
procedure ReleaseMouse; override;
@@ -1432,11 +1433,24 @@ begin
Windows.ShowWindow(Handle, SW_SHOWNORMAL);
Windows.UpdateWindow(Handle);
Windows.SetForegroundWindow(Handle);
+
+ { Show all child windows }
for i := 0 to Pred(ChildWindows.Count) do
TGDIWindow(ChildWindows.Items[i]).Show;
end;
+procedure TGDIWindow.Hide;
+var
+ i: integer;
+begin
+ Windows.ShowWindow(Handle, SW_HIDE);
+
+ { Hide all child windows }
+ for i := 0 to Pred(ChildWindows.Count) do
+ TGDIWindow(ChildWindows.Items[i]).Hide;
+end;
+{ Invalidates the entire window }
procedure TGDIWindow.Invalidate;
begin
Windows.InvalidateRect(Handle, nil, True);