3 Replies Latest reply on Dec 3, 2009 2:02 PM by mattb

    How to design this situation in FMP?

    mattb

      Title

      How to design this situation in FMP?

      Post

      [I originally (and accidentally) posted this message in the Report a Bug board - now reposting here] 

       

      Yes, it's me again - the Visual Foxpro programmer trying to duplicate existing functionality in FMP for our Mac OSX version of a commercial app.

       

      Here's the situation:

       

      In my VFP program I have a screen with a popup that has 13 items in it and listbox immediately below that contains up to 25 items in it.

      In the VFP program, selecting one of the 13 items in the popup populates the listbox below with different data.

       

      I know that FMP doesn't have listboxes, but for my purposes in FMP, I'm using a grouped set of buttons.  I'm not using a portal here because the

      info in the listbox/button group doesn't come from a table.  My line of thinking was to make up 13 button groups, each with its own unique data

      and place them all in the exact same spot on the layout.  Then when the user makes a choice in the popup, the appropriate button group will

      show up.

       

      In VFP, the programmer has the option of placing objects on a form (layout) and designating them as visible or invisible.  Then when an action

      is taken, the Visible property for an object is programmatically set to either True or False.  Easy.  However, I see that FMP has no ability to make

      objects on a layout visible or invisible through any code.  I thought maybe FMP could programatically "send to front" the proper button set, but

      I see no way of doing this either.  I then thought I could use the Go To Object script step to accomplish this after naming each button set with

      an object name, but it doesn't appear that this script step will bring the active object to the front when they are all placed in the same spot

      on the layout.

       

      Of course, I realize I can "solve" the problem by placing each button group in a separate layout and bring up different windows based on the

      popup choice, but I am trying to achieve this functionality in one layout!  Is this possible?  I really hate the idea of making a separate window

      for each button group.

       

      Speaking of which, is it at all possible to turn off the bar at the bottom of each window (the one with the zoom in, zoom out controls)??

       

      Thanks in advance for any good ideas in these regards...

       

       

       

      Matt Bloomfield

       

       

       

       

       

        • 1. Re: How to design this situation in FMP?
          philmodjunk
            

          Mr. Vodka and I already posted some suggestions on the other thread:

           

          How to design this situation in FMP?

           

          Did those help you out any?

          • 2. Re: How to design this situation in FMP?
            mattb
              

            Phil:

             

            Mr. Vodka and I already posted some suggestions on the other thread:

            How to design this situation in FMP?

            Did those help you out any?

             

            They look like good suggestions.  I'm going to have to play around with them, so I'll let you know

            a little bit later after I've performed some experiments.  I appreciate the quick responses on this

            forum, though!

             

             

             

            Matt 

             

            • 3. Re: How to design this situation in FMP?
              mattb
                

              Phil:

               

              Solving this situation turned out to be easier than I thought.  Yes, I did need to enter the button info into a new table.  One record per

              each button set.  Turns out the info in the popup (which comes from a value list, but more importantly the current choice in the popup

              comes from a field in an existing table).  This allowed me to setup a relationship between the two tables and now whatever choice

              is made in the popup displays a single set of grouped edit fields to display the proper values.  Thanks for pointing me in the right

              direction.  Obviously I will learn to think as a FMP programmer does one of these days (hopefully soon) instead of as a VFP programmer!

               

               

               

              Matt