Drop Down Menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • msdesigner1
    Forum Member
    • Jan 2005
    • 7

    Drop Down Menu

    Hi All,

    I am hoping someone will be able to help me out with creating a drop down menu.

    I followed the instructions listed in the Help files.
    if visible then
    Label.SetVisible("Label2", false);
    Label.SetVisible("Label3", false);
    Label.SetVisible("Label4", false);
    Label.SetVisible("Label5", false);
    Label.SetVisible("Label6", false);
    visible = false;
    else
    Label.SetVisible("Label2", true);
    Label.SetVisible("Label3", true);
    Label.SetVisible("Label4", true);
    Label.SetVisible("Label5", true);
    Label.SetVisible("Label6", true);
    visible = true;
    end

    Insert the following into your Global Functions:

    visible = false;
    When published, the submenu items are not hidden until the main button is clicked. It looks like a regular menu. Have I missed a step??

    Thanks in advance,

    S./
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Set each label object that you don't want to be visible at start up Visible Property to false in the IDE.

    Comment

    • msdesigner1
      Forum Member
      • Jan 2005
      • 7

      #3
      thank you!!!!!

      another quick question...... I guess a label can only be one line right? when I try to get a word wrap, the font resizes. Any way past this and still be able to use the script for the drop down.

      I love the ease of this program!!

      Comment

      • Brett
        Indigo Rose Staff Member
        • Jan 2000
        • 2001

        #4
        If it's word wrap you need, use the Paragraph object instead.

        Comment

        • msdesigner1
          Forum Member
          • Jan 2005
          • 7

          #5
          and change the script accordingly ---- label to paragraph------- right?

          Comment

          • Worm
            Indigo Rose Customer
            • Jul 2002
            • 3971

            #6
            yup, you got it.

            Comment

            • msdesigner1
              Forum Member
              • Jan 2005
              • 7

              #7
              Ok, so the menu works except I click on the main menu item after going through the submenu, everything disappears.

              Please bear with me as I have only been using the software for 3 hours!!!

              Comment

              Working...
              X