summaryrefslogtreecommitdiff
path: root/src/corelib/gdi
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-11-21 10:57:25 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-11-21 10:57:25 +0200
commit63098540b6e55412f3e62d7c23d649bac9406c4a (patch)
tree3c649e29aebaaa2ea384919f943b674ac8a73cbf /src/corelib/gdi
parenta2ec86054d7e659dba10eede9152d65ab2f99035 (diff)
downloadfpGUI-63098540b6e55412f3e62d7c23d649bac9406c4a.tar.xz
TfpgWindowBase now introduces a BringToFront() method.
Diffstat (limited to 'src/corelib/gdi')
-rw-r--r--src/corelib/gdi/fpg_gdi.pas9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas
index 77d476ab..9f8abfbc 100644
--- a/src/corelib/gdi/fpg_gdi.pas
+++ b/src/corelib/gdi/fpg_gdi.pas
@@ -1,7 +1,7 @@
{
fpGUI - Free Pascal GUI Toolkit
- Copyright (C) 2006 - 2010 See the file AUTHORS.txt, included in this
+ Copyright (C) 2006 - 2011 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -197,6 +197,7 @@ type
procedure CaptureMouse; override;
procedure ReleaseMouse; override;
procedure SetFullscreen(AValue: Boolean); override;
+ procedure BringToFront; override;
end;
@@ -2015,6 +2016,12 @@ begin
WindowSetFullscreen(AValue, True);
end;
+procedure TfpgGDIWindow.BringToFront;
+begin
+ if HasHandle then
+ BringWindowToTop(FWinHandle);
+end;
+
function TfpgGDIWindow.HandleIsValid: boolean;
begin
Result := FWinHandle > 0;