dbTalk Databases Forums  

FMP8 Tab Control

comp.databases.filemaker comp.databases.filemaker


Discuss FMP8 Tab Control in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hans Puype
 
Posts: n/a

Default FMP8 Tab Control - 06-07-2007 , 03:09 PM






Hi,

I created 2 tabs in a particular layout through the FMP 8 feature
'insert tab control'.

In a script I want to take a decision depending on the tab which is
visible.

How can I do that?

Thanks in advance,
Hans Puype
Belgium

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

Default Re: FMP8 Tab Control - 06-07-2007 , 04:39 PM






In article <1hzcyl2.mxfj1wsv9j24N%hpuype (AT) gmail (DOT) com>
hpuype (AT) gmail (DOT) com(Hans Puype) wrote:

Quote:
Hi,

I created 2 tabs in a particular layout through the FMP 8
feature'insert tab control'.

In a script I want to take a decision depending on the tab which is
visible.

How can I do that?

Thanks in advance,
Hans Puype
Belgium

Script step Go To Field, specifying a field that is on that tab.

Creat a global field to act as a target if necessary.

Matt

--
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo



Reply With Quote
  #3  
Old   
donotusethisaddressr@gmail.com
 
Posts: n/a

Default Re: FMP8 Tab Control - 06-07-2007 , 06:19 PM



On Jun 7, 9:09 pm, hpu... (AT) gmail (DOT) com (Hans Puype) wrote:
Quote:
Hi,

I created 2 tabs in a particular layout through the FMP 8 feature
'insert tab control'.

In a script I want to take a decision depending on the tab which is
visible.

How can I do that?

Thanks in advance,
Hans Puype
Belgium
Hi

This advice is for FileMaker 8.5

In the tab control setup you can give a display name for each tab.
This is what users see when they view the tab. I assume you've done
this already.

Then you'll also need to give an object name to each tab too. This you
do by first making sure that "object info" is displayed. This can be
switched on from the "View" menu.

Now select each tab in turn. A tab looks selected when it has a thick
black square around the tab name. Since FileMaker 8.5, the "object
info" has an extra field called "object name". Give each tab a name
here eg "Tab1".

In your script have an If statement: If Get
( ActiveLayoutObjectName )="Tab1".

Regards
Kevin



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

Default Re: FMP8 Tab Control - 06-07-2007 , 07:15 PM



In article
<1181258384.324441.229720 (AT) w5g2000hsg (DOT) googlegroups.com>donotusethisaddre
ssr (AT) gmail (DOT) com wrote:

Quote:
On Jun 7, 9:09 pm, hpu... (AT) gmail (DOT) com (Hans Puype) wrote:
Hi,

I created 2 tabs in a particular layout through the FMP 8 feature
'insert tab control'.

In a script I want to take a decision depending on the tab which
is visible.

How can I do that?

Thanks in advance,
Hans Puype
Belgium

Hi

This advice is for FileMaker 8.5

In the tab control setup you can give a display name for each tab.
This is what users see when they view the tab. I assume you've
donethis already.

Then you'll also need to give an object name to each tab too. This
you do by first making sure that "object info" is displayed. This can
beswitched on from the "View" menu.

Now select each tab in turn. A tab looks selected when it has a
thick black square around the tab name. Since FileMaker 8.5, the
"object info" has an extra field called "object name". Give each tab
a namehere eg "Tab1".

In your script have an If statement: If Get
( ActiveLayoutObjectName )="Tab1".

Regards
Kevin


The question specified FileMaker 8, which does not support named
objects.
Matt

--
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo



Reply With Quote
  #5  
Old   
donotusethisaddressr@gmail.com
 
Posts: n/a

Default Re: FMP8 Tab Control - 06-08-2007 , 05:13 PM



On Jun 7, 10:39 pm, Matt WIlls <I... (AT) Witz (DOT) End> wrote:
Quote:
In article <1hzcyl2.mxfj1wsv9j24N%hpu... (AT) gmail (DOT) com

hpu... (AT) gmail (DOT) com(Hans Puype) wrote:
Hi,

I created 2 tabs in a particular layout through the FMP 8
feature'insert tab control'.

In a script I want to take a decision depending on the tab which is
visible.

How can I do that?

Thanks in advance,
Hans Puype
Belgium

Script step Go To Field, specifying a field that is on that tab.

Creat a global field to act as a target if necessary.

Matt

--
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it athttp://www.malcom-mac.com/nemo
Here's another attempt by me to answer Hans's question. Am I correct
in assuming that not only do you need navigate to a tab by script, but
also need to know which tab user is on?

Well, if this is the case then use Matt's approach outlined above to
control tab navigation. First you need to hide the real tabs though.
This can be done by following the advice in this post:
http://groups.google.com/group/comp....06cd3884c1bf5d
It involves making the tabs so small that users won't see them.
Replace the tabs with simulated ones that link to buttons that
navigate to the desired layout. Also record what button has been
pressed so that you other scripts will know which tab you are in at
any time.

Regards
Kevin Smith



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

Default Re: FMP8 Tab Control - 06-11-2007 , 02:18 PM



I have FMP 8.5, sorry I forgot to add the .5 which seems to make a big
difference for this solution.
Thank you, this is exactly what I need.

Kind regards,
Hans


On 8 jun, 01:19, donotusethisaddre... (AT) gmail (DOT) com wrote:
Quote:
This advice is for FileMaker 8.5

In the tab control setup you can give a display name for each tab.
This is what users see when they view the tab. I assume you've done
this already.

Then you'll also need to give an object name to each tab too. This you
do by first making sure that "object info" is displayed. This can be
switched on from the "View" menu.

Now select each tab in turn. A tab looks selected when it has a thick
black square around the tab name. Since FileMaker 8.5, the "object
info" has an extra field called "object name". Give each tab a name
here eg "Tab1".

In your script have an If statement: If Get
( ActiveLayoutObjectName )="Tab1".

Regards
Kevin



Reply With Quote
  #7  
Old   
Matt WIlls
 
Posts: n/a

Default Re: FMP8 Tab Control - 06-11-2007 , 02:51 PM



In article
<1181589518.614232.183630 (AT) k79g2000hse (DOT) googlegroups.com>hpuype
<hpuype (AT) gmail (DOT) com> wrote:

Quote:
I have FMP 8.5, sorry I forgot to add the .5 which seems to make a
big difference for this solution.

That it does.

Object naming was new in 8.5, prior to which we had to use the Go To
Field trick I described.
Matt

--
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo



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.