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

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

Questions (Windows Mobile) Post any question regarding Basic4ppc.

SIP Input

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-01-2008, 01:33 PM
Newbie
 
Join Date: May 2008
Posts: 3
Post SIP Input

I'm still 'practicing' with Basic4PPC but its got me hooked. I do most coding on my device but being a VB.net and desktop convert, I have never needed to know much about SIP coding.

I understand the SIP(True) and SIP(False) commands but what I am looking to do is to obtain input from the user via the SIP but not necessarily into a visible control such as a textbox.

For example, if a question e.g. 3 + 5 = ? appears on screen, I want the user to be able to input 8, the label showing 3 + 5 = ? will change to 3 + 5 = 8 correct), scroll up and a new question appear. This I can take care of except for obtaining the users input (e.g. 8). The whole process will be timed so I do not want the user to have to tap a text box before using the SIP to enter their answer. I want the user to type/write the answer in the SIP and my program to grab the answer and do the work.

Finally, my question, how do I grab the users input into, say, a variable ?

Any help would be appreciated, sorry if there is an obvious answer!

Lee Stevens
Reply With Quote
  #2 (permalink)  
Old 08-01-2008, 01:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The easiest solution is to "hide" a textbox behind a panel or label and then use something like:
Code:
Sub App_Start
    Form1.Show
    textbox1.Focus
End Sub

Sub TextBox1_KeyPress (key)
    form1.Text = key 
'handle the key press
    textbox1.Text = ""
End Sub
Reply With Quote
  #3 (permalink)  
Old 08-01-2008, 03:00 PM
Newbie
 
Join Date: May 2008
Posts: 3
Default

Thanks Erel,

I will give the idea a try. I considered this method but was unsure whether the textbox would retain focus (with everything else going on!) - however thats the programmers job (to keep control of the controls).

Thanks again for the reply and for the excellent software !!

Lee Stevens
(newbie++)
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
Help by using a barcode scanner for input sunnyboyj Questions (Windows Mobile) 3 12-14-2007 02:34 PM
SOund Input? PKinz Basic4ppc Wishlist 1 12-12-2007 02:51 PM
TextBox Input Filter? dlfallen Questions (Windows Mobile) 18 10-10-2007 06:50 PM
Input Panel Erel Code Samples & Tips 17 07-04-2007 03:29 AM
Sound/Mic input Bill Todd Questions (Windows Mobile) 2 06-22-2007 11:29 AM


All times are GMT. The time now is 10:11 AM.


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