dbTalk Databases Forums  

Dynamic menu bar issues... Help!!!

comp.databases.filemaker comp.databases.filemaker


Discuss Dynamic menu bar issues... Help!!! in the comp.databases.filemaker forum.



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

Default Dynamic menu bar issues... Help!!! - 06-11-2007 , 08:52 PM






I am having issues trying to construct a menu bar that is dynamic. I
have a set of checkboxes that specify user access, I use those to
create a menu bar. So far so good. The menu bar is a global
repeating field that I fill in with the menu items the user has access
to. That all works fine and dandy.

Now, I don't want to directly display that on screen, because I want
to have a graphic bar that indicates which program module the user is
currently in, so I have a global field that stores the name of the
current module, and I want to use that to indicate on screen with a
coloured bar under the name of the current module, and the name itself
to change colour.

So, I have created 2 more repeating fields, one that copies the text
straight across from the source field, changing colour for the current
module, and another one that contains the graphic. Both are
calculation fields, one returning text, the other graphic. However,
neither works!!! It did work when I told it the current line was the
first one on the list, but other than that it doesn't work. My
calculations are like this:

Case ( gMenuSource [ GetCalculationRepetition () ] = gCurrentModule ;
TextColor( gMenuSource [GetCalculationRepetition ()] ; RGB (255 ;255 ;
255) ) ;
gMenuSource [GetCalculationRepetition ()]
)


Any ideas what I am doing wrong??? Is it something to do with the
fact this solution uses data separation? The repeating fields are
defined in the data file and displayed in the interface file.

Any help would be much appreciated!

Ta

Chris Nielsen


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

Default Re: Dynamic menu bar issues... Help!!! - 06-11-2007 , 09:18 PM






On Jun 12, 1:52 pm, chris <pa28_... (AT) paradise (DOT) net.nz> wrote:
Quote:
I am having issues trying to construct a menu bar that is dynamic. I
have a set of checkboxes that specify user access, I use those to
create a menu bar. So far so good. The menu bar is a global
repeating field that I fill in with the menu items the user has access
to. That all works fine and dandy.

Now, I don't want to directly display that on screen, because I want
to have a graphic bar that indicates which program module the user is
currently in, so I have a global field that stores the name of the
current module, and I want to use that to indicate on screen with a
coloured bar under the name of the current module, and the name itself
to change colour.

So, I have created 2 more repeating fields, one that copies the text
straight across from the source field, changing colour for the current
module, and another one that contains the graphic. Both are
calculation fields, one returning text, the other graphic. However,
neither works!!! It did work when I told it the current line was the
first one on the list, but other than that it doesn't work. My
calculations are like this:

Case ( gMenuSource [ GetCalculationRepetition () ] = gCurrentModule ;
TextColor( gMenuSource [GetCalculationRepetition ()] ; RGB (255 ;255 ;
255) ) ;
gMenuSource [GetCalculationRepetition ()]
)

Any ideas what I am doing wrong??? Is it something to do with the
fact this solution uses data separation? The repeating fields are
defined in the data file and displayed in the interface file.

Any help would be much appreciated!

Ta

Chris Nielsen
I know it's bad to reply to your own posts, but I forgot some
information:

FMP Advanced 8.5 (is it Advanced? I can't remember! What they used
to call Developer)
Mac OSX

Ta!



Reply With Quote
  #3  
Old   
chris
 
Posts: n/a

Default Re: Dynamic menu bar issues... Help!!! - 06-12-2007 , 03:39 PM



On Jun 12, 2:18 pm, chris <pa28_... (AT) paradise (DOT) net.nz> wrote:
Quote:
On Jun 12, 1:52 pm, chris <pa28_... (AT) paradise (DOT) net.nz> wrote:





I am having issues trying to construct a menu bar that is dynamic. I
have a set of checkboxes that specify user access, I use those to
create a menu bar. So far so good. The menu bar is a global
repeating field that I fill in with the menu items the user has access
to. That all works fine and dandy.

Now, I don't want to directly display that on screen, because I want
to have a graphic bar that indicates which program module the user is
currently in, so I have a global field that stores the name of the
current module, and I want to use that to indicate on screen with a
coloured bar under the name of the current module, and the name itself
to change colour.

So, I have created 2 more repeating fields, one that copies the text
straight across from the source field, changing colour for the current
module, and another one that contains the graphic. Both are
calculation fields, one returning text, the other graphic. However,
neither works!!! It did work when I told it the current line was the
first one on the list, but other than that it doesn't work. My
calculations are like this:

Case ( gMenuSource [ GetCalculationRepetition () ] = gCurrentModule ;
TextColor( gMenuSource [GetCalculationRepetition ()] ; RGB (255 ;255 ;
255) ) ;
gMenuSource [GetCalculationRepetition ()]
)

Any ideas what I am doing wrong??? Is it something to do with the
fact this solution uses data separation? The repeating fields are
defined in the data file and displayed in the interface file.

Any help would be much appreciated!

Ta

Chris Nielsen

I know it's bad to reply to your own posts, but I forgot some
information:

FMP Advanced 8.5 (is it Advanced? I can't remember! What they used
to call Developer)
Mac OSX

Ta!- Hide quoted text -

- Show quoted text -
Yay - fixed!

Turned out when doing the comparison I needed to reference a
repetition in the other field even though it has no repetitions!
WTF???

Instead of gMenuBar[ GetCalculationRepetition() ] = gCurrentModule, I
had to compare it to gCurrentModule[1]

I'd love to know why!!



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.