diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-23 09:34:31 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-23 09:34:31 +0200 |
commit | c9fb1258cd8cc37dba1b36f83ac92716dc544d6e (patch) | |
tree | 2f7eedfb2fc7a3b5dda3447eaa3bb8ddb5160605 /src/corelib/fpg_base.pas | |
parent | 5f610dc4bf2f56080cc88b253d5a8709cf906394 (diff) | |
download | fpGUI-c9fb1258cd8cc37dba1b36f83ac92716dc544d6e.tar.xz |
New WindowPosition setting of wpOneThirdDown.
Part of the "golden ratio" goodies. It seems to me more pleasing
to the eye if a dialog is not 100% centered in the window, but
rather 1/3 down of available vertical space. I think Mac OS X
also does this.
Diffstat (limited to 'src/corelib/fpg_base.pas')
-rw-r--r-- | src/corelib/fpg_base.pas | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas index 2ebb3201..a616cf31 100644 --- a/src/corelib/fpg_base.pas +++ b/src/corelib/fpg_base.pas @@ -45,7 +45,9 @@ type TWindowType = (wtChild, wtWindow, wtModalForm, wtPopup); - TWindowAttribute = (waSizeable, waAutoPos, waScreenCenterPos, waStayOnTop, waFullScreen, waBorderless, waUnblockableMessages, waX11SkipWMHints); + TWindowAttribute = (waSizeable, waAutoPos, waScreenCenterPos, waStayOnTop, + waFullScreen, waBorderless, waUnblockableMessages, waX11SkipWMHints, + waOneThirdDownPos); TWindowAttributes = set of TWindowAttribute; TMouseCursor = (mcDefault, mcArrow, mcCross, mcIBeam, mcSizeEW, mcSizeNS, |