dbTalk Databases Forums  

Centre Window in Middle or Screen

comp.databases.filemaker comp.databases.filemaker


Discuss Centre Window in Middle or Screen in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Telstra Bigpond
 
Posts: n/a

Default Centre Window in Middle or Screen - 07-19-2005 , 07:43 AM






Hi,

Does anybody have a formula for repositioning a window in the middle of the
screen?

Many thanks,
Andrew



Reply With Quote
  #2  
Old   
ttrimble
 
Posts: n/a

Default Re: Centre Window in Middle or Screen - 07-19-2005 , 11:57 AM






Andrew,

You would use the Move/Resize Window function. For the Distance from
Top, use the following calculation:
(Get(ScreenHeight)/2) - (Get(WindowHeight)/2)
and for the Distance from Left, use this calculation:
(Get(ScreenWidth)/2) - (Get(WindowWidth)/2)

Hope that helps.

Tim

Telstra Bigpond wrote:
Quote:
Hi,

Does anybody have a formula for repositioning a window in the middle of the
screen?

Many thanks,
Andrew



--
================================================== ========================
Tim Trimble - timdottrimbleatgmaildotcom
http://www.timothytrimble.info
Home of The ART of Software Development Blog
================================================== ========================


Reply With Quote
  #3  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Centre Window in Middle or Screen - 07-22-2005 , 02:38 AM



In article <%H5De.52775$oJ.6898 (AT) news-server (DOT) bigpond.net.au>, "Telstra
Bigpond" <splash (AT) nospamthanks (DOT) mac.com> wrote:

Quote:
Does anybody have a formula for repositioning a window in the middle of the
screen?
You don't say which version of FileMaker and I'm not sure if there's
anything new in FileMaker 7, but older versions of FileMaker don't have
the ability to move or re-size the window. If you want the window
centred on the screen you'll have to do it by manually dragging the
window into position. FileMaker will then save that new psotion (at
least it does on the Mac, I'm not sure about Windows).

There may be some plug-ins around that allow you to manipulate the
window, but I can't recall any and they're usually expensive anyway -
is it really worth somthing like US$50+ just to centre a window??


Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.