PDA

View Full Version : Button Hiding Blues


Tezcatlipoca
04-10-2003, 06:30 AM
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???

Lorne
04-10-2003, 09:47 AM
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?

Tezcatlipoca
04-11-2003, 03:50 AM
Ah, solved it. I was stupidly using the TextObject > IsVisible command, instead of the Page > ShowObject. Works fine now!

Corey
04-11-2003, 04:52 AM
Cool beans...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

TJ_Tigger
04-11-2003, 01:29 PM
Corey, isn't that a quote from Jack?

Corey
04-11-2003, 05:57 PM
Yeah Jack Osbourne, it went something like, "$!&#%* cool $#@!!*&* beans..." I think.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)