dbTalk Databases Forums  

Re: How do I position a window on the screen when it opens?

comp.databases.filemaker comp.databases.filemaker


Discuss Re: How do I position a window on the screen when it opens? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
peter h
 
Posts: n/a

Default Re: How do I position a window on the screen when it opens? - 08-07-2003 , 02:59 AM







Originally posted by Scott
Quote:
Hi everyone, thanks for your help in advance. I'm sure this is an easy
one (I hope at least).

I have a layout that I want to open to a certain size (that part I
got--zoom) but I want it to default to a specific point on the screen
regardless of resolution.

I am using a tabbed interface that hides the front window and then
opens the selected database to a new window. In order for the tabbed
interface to appear seamless, I need to be able to control
where on the
screen the new db comes up so it appears to the user that they have
simply switched laayouts, not databases.

I tried the folowing AppleScript with no success.:

tell application "FileMaker Pro"
activate
set position of window "fb_company.fp5" to {0, 40}
end tell

Ideas?

Scott
Try this:

tell application "FileMaker Pro"
open file "Mac HD:fb_company.fp5"
set theWindow to name of first window
bounds of window theWindow
set bounds of window theWindow to {500, 300, 1000, 500}
end tell

Cheers, Peter.

--
Posted via http://dbforums.com


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

Default Re: How do I position a window on the screen when it opens? - 08-11-2003 , 07:03 PM







Hi Scott,

I suggest you check out a plug-in called WindowUtility at
www.PracticeMaker.com

They specialize in handling pesky windows - both at the application
level and within. It allows positioning a window (and freezing it) and
specifying size (and many other things includIng disabling Xs) thourgh
FM scripts. And it's not very difficult to learn because they give you
all the external functions. You do have to be a bit careful but
that's true with all good things.

It is also cross-platform (although a few functions are not yet
available for Macs). It's well worth the investment if you deal with
Windows at all.

Cheers,
LaRetta

--
Posted via http://dbforums.com

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.