Go Back   Android Forums > Android Development > Application Development > App Inventor

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old June 8th, 2012, 01:08 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Make a button appear after a certain amount of secounds?

When my apps starts I would like to have a button become un-visible after about 5 seconds and show up so users can click it, can I do that? How?

Thanks.

alexjpallo is offline  
Reply With Quote
sponsored links
Old June 8th, 2012, 01:16 AM   #2 (permalink)
Senior Member
 
sleedeane's Avatar
 
Join Date: Jul 2011
Location: Columbia, MO.
Posts: 994
 
Device(s): Samsung Galaxy S2
Carrier: Not Provided

Thanks: 338
Thanked 150 Times in 112 Posts
Default

Your sentence makes no sense. You want a button to become un-visible (invisible), and show up (huh?) so people can click on it?
__________________
Sent from my SGH T-989 via Tapatalk
sleedeane is online now  
Last edited by sleedeane; June 8th, 2012 at 01:19 AM.
Reply With Quote
Old June 8th, 2012, 02:10 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

ya your right.. I meant I made a button invisible in the properties and when my app starts up I would like the button to be come visible after 5 seconds. Do I need to use the clock and set a timer in seconds, well I cant figure it out.
alexjpallo is offline  
Reply With Quote
Old July 3rd, 2012, 12:48 AM   #4 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Louisiana, USA
Posts: 33
 
Device(s): Asus Eee Transformer
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

In Screen Designer, drag out a Clock component from the Basic tab.
In the properties window, uncheck Timer Allways Fires.
set the Interval to 5000. (milliseconds)
Uncheck the Visible method for Button1.

In the Blocks Editor:
Drag out a Clock1.Timer event block.
inside the Clock1.Timer event block put your Button1.Visible block and set it to true.

When the user switches to the screen with the button, or if it is in Screen1 when the app opens, there will be a 5 second delay before the button appears.
The way a timer works, it's delay happens first then the blocks inside get executed, not the other way around.
appinventor is offline  
Last edited by appinventor; July 3rd, 2012 at 12:50 AM. Reason: extra text
Reply With Quote
Reply
Tags
android, clock, question, visible


Go Back   Android Forums > Android Development > Application Development > App Inventor
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:22 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.