dbTalk Databases Forums  

Setting new window in FMP7

comp.databases.filemaker comp.databases.filemaker


Discuss Setting new window in FMP7 in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ron H.
 
Posts: n/a

Default Setting new window in FMP7 - 08-31-2005 , 08:26 AM






Hi All,
I am using FMP7 under Windows and I have a need to press a script button and
open a new (second) window on top of the existing layout
1. I want to keep the initial layout visible and Maximised
2. The second window comes from a related record and is much smaller and
sits on top
I am having trouble using Related Record and New Window scripts to achieve
this - I keep getting the second window opening on top of a reduced initial
layout - What am I doing wrong

Regards Ron H.



Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 08:56 AM






Ron H. wrote on (8/31/2005):

Quote:
Hi All,
I am using FMP7 under Windows and I have a need to press a script button
and open a new (second) window on top of the existing layout
1. I want to keep the initial layout visible and Maximised
2. The second window comes from a related record and is much smaller and
sits on top
I am having trouble using Related Record and New Window scripts to achieve
this - I keep getting the second window opening on top of a reduced
initial layout - What am I doing wrong

Regards Ron H.
This frustrated the bejeebers out of me as well, until I stumbled on the
idea that my initial layout had to be as large as possible without
actually being maximized.

Tips:

Create a development script to set global fields with the window's
coordinates (top, left, height, width). This allows you to play with the
size: drag to desired size and position and execute script until you get
it where you want it.

Make another script to position the window on startup, perhaps at various
other points just to make it's where you want it.

Matt


Reply With Quote
  #3  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 12:47 PM



I would duplicate the layout1, make all fields non modifiable, and draw
on it a simili layout that would look like the layout2;
Remi-Noel

"Ron H." <ronald_h70 (AT) hotttmail (DOT) commm> a écrit
Quote:
Hi All,
I am using FMP7 under Windows and I have a need to press a script
button and open a new (second) window on top of the existing layout
1. I want to keep the initial layout visible and Maximised
2. The second window comes from a related record and is much smaller
and sits on top
I am having trouble using Related Record and New Window scripts to
achieve this - I keep getting the second window opening on top of a
reduced initial layout - What am I doing wrong

Regards Ron H.




Reply With Quote
  #4  
Old   
Matt Wills
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 01:42 PM



Given the multiple-window capability, why would you would go to that
length to fake it?

This doesn't even consider the effort necessary to maintain such a thing
if you want to change the original layout, requiring the secondary to be
redone as well.

Matt

Remi-Noel Menegaux wrote on (8/31/2005):

Quote:
I would duplicate the layout1, make all fields non modifiable, and draw on
it a simili layout that would look like the layout2;
Remi-Noel

"Ron H." <ronald_h70 (AT) hotttmail (DOT) commm> a icrit
Hi All,
I am using FMP7 under Windows and I have a need to press a script button
and open a new (second) window on top of the existing layout
1. I want to keep the initial layout visible and Maximised
2. The second window comes from a related record and is much smaller and
sits on top
I am having trouble using Related Record and New Window scripts to
achieve this - I keep getting the second window opening on top of a
reduced initial layout - What am I doing wrong

Regards Ron H.



Reply With Quote
  #5  
Old   
Grip
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 06:01 PM



Try:

Set Window Title [Current Window; New Title: "Old Window"]
New Window [Name: "New Window", Height xx Width xx Top x Left x]
Go to Layout ["New Layout"]
Move/Resize Window [Name: "Old Window"; Height: 2000; Width: Width
1000; Top: 0; Left; 0]
Select Window [Name: "New Window"]

Also you can get good measurements for the new window by going to the
layout for the old window and making a test box of the size and
location for the new window. The Object Size option under the View
menu will tell you the info you need in pixels (click the measurement
units until you get to px).

-G


Reply With Quote
  #6  
Old   
Grip
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 06:01 PM



Try:

Set Window Title [Current Window; New Title: "Old Window"]
New Window [Name: "New Window", Height xx Width xx Top x Left x]
Go to Layout ["New Layout"]
Move/Resize Window [Name: "Old Window"; Height: 2000; Width: Width
1000; Top: 0; Left; 0]
Select Window [Name: "New Window"]

Also you can get good measurements for the new window by going to the
layout for the old window and making a test box of the size and
location for the new window. The Object Size option under the View
menu will tell you the info you need in pixels (click the measurement
units until you get to px).

-G


Reply With Quote
  #7  
Old   
FP
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 06:54 PM



Unfortunately what you're describing is a Windows "feature". The
easiest way to get around this, on startup maximize your window then
use the Move/Resize Window command and set the Height to Get (
WindowHeight ) - 1. Do the same thing for the width.
Your window will be almost maximized but you won't have any more issues
with it just resizing on you for no reason.


Reply With Quote
  #8  
Old   
Matt Wills
 
Posts: n/a

Default Re: Setting new window in FMP7 - 08-31-2005 , 07:43 PM



FP wrote on (8/31/2005):

Quote:
Unfortunately what you're describing is a Windows "feature". The
easiest way to get around this, on startup maximize your window then
use the Move/Resize Window command and set the Height to Get (
WindowHeight ) - 1. Do the same thing for the width.
Your window will be almost maximized but you won't have any more issues
with it just resizing on you for no reason.
I like the simplicity of it, as well as eliminating the need to store
coordinates, but there is a very noticable double jump in the window,
first to maximize, another upon resize.

I don't see such a jump if I use a single Adjust Window step to the four
coordinates previously stored.

Matt


Reply With Quote
  #9  
Old   
Dan
 
Posts: n/a

Default Re: Setting new window in FMP7 - 09-01-2005 , 01:39 AM



Matt Wills wrote:
Quote:
FP wrote on (8/31/2005):

Unfortunately what you're describing is a Windows "feature". The
easiest way to get around this, on startup maximize your window then
use the Move/Resize Window command and set the Height to Get (
WindowHeight ) - 1. Do the same thing for the width.
Your window will be almost maximized but you won't have any more
issues with it just resizing on you for no reason.

I like the simplicity of it, as well as eliminating the need to store
coordinates, but there is a very noticable double jump in the window,
first to maximize, another upon resize.

I don't see such a jump if I use a single Adjust Window step to the
four coordinates previously stored.

Matt
One of the options in Adsjust Window is Resize to Fit which appears to
do this without the need to store coordinates.

--
Dan
Using
FMP7.03, WinXP SP2




Reply With Quote
  #10  
Old   
Matt Wills
 
Posts: n/a

Default Re: Setting new window in FMP7 - 09-01-2005 , 05:22 AM



Dan wrote on (9/1/2005):

Quote:
Matt Wills wrote:
FP wrote on (8/31/2005):

Unfortunately what you're describing is a Windows "feature". The
easiest way to get around this, on startup maximize your window then
use the Move/Resize Window command and set the Height to Get (
WindowHeight ) - 1. Do the same thing for the width.
Your window will be almost maximized but you won't have any more
issues with it just resizing on you for no reason.

I like the simplicity of it, as well as eliminating the need to store
coordinates, but there is a very noticable double jump in the window,
first to maximize, another upon resize.

I don't see such a jump if I use a single Adjust Window step to the
four coordinates previously stored.

Matt

One of the options in Adsjust Window is Resize to Fit which appears to do
this without the need to store coordinates.
That would work for the size, but you might still want to control the
position.

Matt


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.