Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.

Newbie - some code questions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2011, 01:59 PM
Newbie
 
Join Date: Mar 2011
Posts: 4
Default Newbie - some code questions

Hi

I have few questions
1. I did not understand how can I use the timer, what exactly I need to do?

2. if I have buttons from 1 to 10 and another var called num with numbers of 1 of 10, how can I do something like Button&num.color=colors.red

3. how do I do - when clicking button1 it will play "sound.wav"

Thanks
Shay
Reply With Quote
  #2 (permalink)  
Old 03-23-2011, 03:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

1. Add a timer in the designer. You start the timer by settings its Enabled property to True.
2. See the Runtime controls manipulation tutorial: Tutorials - Basic4ppc / Basic4android - Android programming
3. See the Sound keyword.
Reply With Quote
  #3 (permalink)  
Old 03-23-2011, 06:21 PM
Newbie
 
Join Date: Mar 2011
Posts: 4
Default Timer

Hi

thank you for the reply
where do I find the timer in the desinger? (Cannot find it)

thanks
Reply With Quote
  #4 (permalink)  
Old 03-23-2011, 06:44 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Select a form from 'Designer'
click 'Controls', Timer. Voila :-)

__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #5 (permalink)  
Old 03-23-2011, 07:11 PM
Newbie
 
Join Date: Mar 2011
Posts: 4
Default Timer

I don't see it
I assume since I am using the trial version...
Reply With Quote
  #6 (permalink)  
Old 03-23-2011, 10:55 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Shay7 View Post
I don't see it
I assume since I am using the trial version...
It's a long time since I used the trial version so I don't remember if there was anything missing (I thought only the extra libraries were not available).

So what is the last control that you see on the Controls menu, above "Menu Editor"?

Mike.
Reply With Quote
  #7 (permalink)  
Old 03-24-2011, 07:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Are you asking about Basic4ppc or Basic4android?
This is the Basic4ppc subforum.
Reply With Quote
  #8 (permalink)  
Old 03-24-2011, 09:19 PM
Newbie
 
Join Date: Mar 2011
Posts: 4
Default Android

My mistake
I didn't know there are 2 software
so can you answer the above questions for the android software

Shay
Reply With Quote
  #9 (permalink)  
Old 03-25-2011, 06:31 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Instead of adding a timer with the designer you should just write:
Code:
Dim Timer1 As Timer
I recommend you to follow some of the tutorials listed here: Basic4android - Android programming with Gui designer

There is an example of dealing with multiple views in the Variables & Objects tutorial.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Total newbie help please? Frogger Questions (Windows Mobile) 6 01-12-2010 01:02 PM
Newbie mark Italian Forum 0 06-26-2009 02:58 PM
Newbie: animation texaspoker11 Questions (Windows Mobile) 3 11-05-2008 05:43 PM
Newbie Questions Bruno Questions (Windows Mobile) 2 05-05-2008 06:45 PM
Newbie questions stratus Questions (Windows Mobile) 2 11-13-2007 01:21 PM


All times are GMT. The time now is 10:58 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0