Announcement

Collapse
No announcement yet.

Button Hiding Blues

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

  • Button Hiding Blues

    Dear All,

    Firstly, as a lurker on these boards I want to express my thanks for the sheer amount of useful knowledge available here. Thanks to it, I've managed to almost finish my Autoplay project without having to make a single post.

    Unfortuantely, I've run into a problem which I've - despite following threads which are related to the concern - been unable to resolve.

    *The Setup*
    I'm currently working on one page of my project. This page has a number of buttons at the top of the screen, a text area in the centre, and a small button at the bottom. Currently, the top buttons have OnClick commands attached to them, which display text in the TextArea of the screen when clicked. My page has an OnInitialise command to hide Image 14 (Image 14 being my button at the bottom of the screen).
    Currently the dynamic page works like this:
    I run the preview and everything is fine. The page is blank, except for the background and the buttons at the top. I can click on the top buttons, each of which brings up different text in the TextArea.

    *The Desired Effect*
    I want the user to be able to click on a certain button at the top of the screen and have both it's associated text AND the button at the bottom appear on screen. This bottom button should not be visible if any other button is clicked on. To this end, the page code hides the bottom button on Page Initialisation. This works. I have an OnClick event for the button which should make image visible, which is created using the Page-ShowObject method. every other top button has an OnClick event of HideObject.

    *The Actual Effect*
    In my - admittedly limited - understanding of Autoplay's coding, the above setup should, I think, work. The current situation, however, is that the page loads up and the bottom button (Image14) disappears as it should do. When I click on the dynamic top button however, only the OnClick text appears. The bottom button does not become visible.

    Soooooo, my query is where the **** am I going wrong???

  • #2
    Re: Button Hiding Blues

    Could be any number of things...are you sure you gave the right object name in the Page.ShowObject action? Is the Page.ShowObject action firing? Do you have any IF statements? If so, try adding Dialog.MessageBox actions inside them to confirm whether the IF's condition is passing or failing. Do you have any actions that might be hiding the button after it's shown?
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Button Hiding Blues

      Ah, solved it. I was stupidly using the TextObject > IsVisible command, instead of the Page > ShowObject. Works fine now!

      Comment


      • #4
        Re: Button Hiding Blues

        Cool beans...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Button Hiding Blues

          Corey, isn't that a quote from Jack?
          TJ-Tigger
          "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
          "Draco dormiens nunquam titillandus."
          Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

          Comment


          • #6
            Re: Button Hiding Blues

            Yeah Jack Osbourne, it went something like, "$!&#%* cool $#@!!*&* beans..." I think.

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment

            Working...
            X