View Full Version : button appear then disapear
samborskij
01-20-2008, 11:05 AM
I have a created a hidden button on opening.
I have made that button appears when another button is clicked.
How would I make the recently opened button disapear with no manual intervention ?
Yes, I am an eternal rookie, with brain cells dying as soon as I learn something new. Thank you for any assistance....Sam
holtgrewe
01-20-2008, 12:25 PM
one way would be:
--on Button1 click:
Button.SetVisible("Button2", true)
Page.StartTimer(5000) -- timer will fire in 5 seconds
--On Page Timer:
Button.SetVisible("Button2", false)
If you're just starting out with AMS, the help file has great examples, and the forum also has great examples in the use of timer events.
samborskij
01-20-2008, 04:55 PM
I tried variations of your suggestion and couldn't get it to work.
My last try was as follows:
Image.SetVisible("Image1", true);
Page.StartTimer(1000);
Page.StopTimer(4000);
Image.SetVisible("Image1", false);
where the action is started by clicking clicking "Label 5"
I am totally confused but still asking for guidance. I have looked and looked in the user help files but not even sure what to look for....Sam
holtgrewe
01-20-2008, 05:11 PM
Here's an example.
hth explain my previous code.
Oops, this example in in AMS 7 - Download the trial version to view it, or I can repost on AMS6.
reposted for AMS6
samborskij
01-20-2008, 05:20 PM
please repost as V6, I am lost enough as..................tnx
holtgrewe
01-20-2008, 05:21 PM
Check the prior post, I was able to re-edit before it timed out.
samborskij
01-20-2008, 05:29 PM
Hahahaha, I told you I was confused, just what prog. does on use to open .APZ files .............
holtgrewe
01-20-2008, 05:44 PM
Save it to your system or just 'open' the file.
If you download it, you should be able to double-click it and it will open in AMS6.
samborskij
01-21-2008, 09:25 AM
Sorry, I went to neighbors to watch GB and Giants play. I opened your attachment. I moted it worked as advertised.
I tried to use the code in my application and it didn't work. I began to think I had another (self created) problem elsewhere. I looked and couldn't find anything.
So I created a new project "Test" and cut and pasted your code. It didn't work.
I am totally confused (haven't I said that already?, its worse)
I attached the seperate project for you to look at.
Sam
holtgrewe
01-21-2008, 10:23 AM
One of the events on the Page is 'On Timer'
--On Page Timer:
Button.SetVisible("Button2", false)
Place this code in the 'On Timer' Event.
That should do it for you.
The help file under 'Page Menu' explains how the 'On Timer' event works.
I hope that helps, good luck.
samborskij
01-22-2008, 07:05 AM
1st off, thank you for your guidance and patience. I went and did something else after your last guidence to get my mind off of the problem.
At some point I realized what it was you were saying.
I stopped trying to put the "TimerStop" as a function of the "button" and made it a function of the "Page".
I then went back to the example you had attached previously and noted, it was there as well. I missed it before.
So again I have proved that I am intuitively challenged but I am full of gratittude, thank You again. Sam
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.