![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 - |
![]() |
| Thread Tools | |
| Display Modes | |
| |