Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

unvisible all labels or images????

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • unvisible all labels or images????

    I have five image...when I click one it will make visible a label
    and when I click another one of five images it will close previous label and make visible new label ...but How ???

    for example:for 1. image code=
    PHP Code:
     Label.SetVisible("all Labels (???) "false);
     
    Label.SetVisible("Label1"true); 
    for 2. image code=
    PHP Code:
     Label.SetVisible("all Labels (???) "false);
     
    Label.SetVisible("Label2"true); 
    all Labels ???

    like this code or another codes for my work.....

    I suppose you understand me :o
    pls help me

  • #2
    Hi,

    There is no built-in GROUP function for labels, yet.

    So, you have to name each label properly. Then specify what will happen to every label when you click something.

    Hard work but necessary.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

    Comment


    • #3
      Check the 'help' for Page.EnumerateObjects().

      This will build a table of all objects on the page.
      You can then loop through the table and set the Object properties accordingly for the objects which are labels.

      Comment


      • #4
        thanks for reply...
        I can use images instead of labels ...
        so which codes I can use ???
        actually what is the group names ...I couldnt see them...
        for example :
        PHP Code:
        Label.SetVisible("group1"false); 
        Label.SetVisible("Label1"true); 
        is it true??? or what

        Comment


        • #5
          thanks holtgrewe....

          I tried but there is no any change.still labels are visible..
          Are there any mistake in my codes ->

          PHP Code:
          object_names Page.EnumerateObjects();
           for 
          indexobject in object_names do
                      -- 
          Get the type of the object
                      type 
          Page.GetObjectType(object);
                      if (
          type == OBJECT_LABELthen
                      Label
          .SetVisible("object"false);
                      
          end
          end
            Label
          .SetVisible("Label1"true); 

          Comment


          • #6
            If I understand you right... Try this.
            Attached Files

            Comment


            • #7
              You can't put quotes around a variable becaus eit is just treated as a string then.

              Code:
              object_names = Page.EnumerateObjects(); 
              for index, object in object_names do 
                          -- Get the type of the object 
                          type = Page.GetObjectType(object); 
                          if (type == OBJECT_LABEL) then 
                          Label.SetVisible(object, false); 
                          end 
              end 
                Label.SetVisible("Label1", true);
              Dermot

              I am so out of here :yes

              Comment


              • #8
                thanks for replies...
                so
                like Bruce's file
                I will write Label.SetVisible("Label", false); for all labels :o
                hardwork :lol
                but I will make like this

                thanks...

                Comment

                Working...
                X