diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-11-21 10:57:25 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-11-21 10:57:25 +0200 |
commit | 63098540b6e55412f3e62d7c23d649bac9406c4a (patch) | |
tree | 3c649e29aebaaa2ea384919f943b674ac8a73cbf /src/corelib/gdi | |
parent | a2ec86054d7e659dba10eede9152d65ab2f99035 (diff) | |
download | fpGUI-63098540b6e55412f3e62d7c23d649bac9406c4a.tar.xz |
TfpgWindowBase now introduces a BringToFront() method.
Diffstat (limited to 'src/corelib/gdi')
-rw-r--r-- | src/corelib/gdi/fpg_gdi.pas | 9 |
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; |