Everything Motorola Q  
Home Motorola Q Store Moto Q Software News Motorola Q Reviews Moto Q Forums Wiki Contact Us Everything Q RSS feed


Go Back   Motorola Q Forum | Everything Q > Moto Q Software > Software

Notices

Android forums

Reply
 
Thread Tools Display Modes
Old 05-22-2007, 11:05 AM   #1 (permalink)
 
Join Date: Apr 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
JimDionne is on a distinguished road
Default Setting Focus to a field on the form using AppForge

We are using AppForge(Crossfire) in VB to develop an application for the SmartPhone. When the first screen loads, none of the fields on the screen is selected or has focus and the tab controls and thumbwheel do not work. We are basically stuck with an application that we can't access except for the menu commands. I tried using the .focus and .select methods but get the following error message: Error Code -2147467259 when I try to run the application on the smartphone. I tried to use canselect and canfocus to set the controls but get error messages when I try to compile the code in Appforge(Crossfire). Does anyone have experience with Appforge, and if so, what code can I add to the application that will allow me to set the focus to the first field on the screen? Thanks.
JimDionne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-22-2007, 04:22 PM   #2 (permalink)
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
cerulean47 is on a distinguished road
Default You'll have better luck here

http://81.149.78.146/Appforge/default.asp

This is the new go-to place for AppForge questions.

The short answer to your question is to make sure that your controls have their TabStop = True and set the TabIndexes in order from 0 to n, with 0 being your topleftmost control, increasing to the right and down.

The control with TabIndex = 0 should get the focus when the form is first loaded.

Set TabStop = False for any control you don't want to have focus.
cerulean47 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2007, 04:13 PM   #3 (permalink)
 
Join Date: Apr 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
JimDionne is on a distinguished road
Default Tab Stop and Tab Index

The information about the TabStop and TabIndex I pretty much knew already except the part about setting the first one to zero. On all of our screens, the first field had the lowest number but none of them were zero. I changed the first one to zero and sequentially renumbered the rest of the fields. Where we are having problems now is with getting the application to recognize clicking either the Center key, the Enter key or the thumbwheel. Some fields recognize it and others don't. Some of the fields that don't recognize it are the fields with date pickers. Any suggestions? I inherited this application from another programmer and am also having a problem with an Input box that was set up to accept information that will be entered into a Notes field. Once I get into the input box I can't get out unless I turn off the phone. It is a basic Input Box with an 'okay' and a 'cancel' button. Any suggestions on how I can get the Input Box to recognize the tab key so I can click the okay button? Thanks in advance

Quote:
Originally Posted by cerulean47 View Post
http://81.149.78.146/Appforge/default.asp
The information about the TabStop and TabIndex I pretty much knew already except the part about setting the first one to zero. On all of our screens, the first field had the lowest number but none of them were zero. I changed the first one to zero and sequentially renumbered the rest of the fields. Where we are having problems now is with getting the application to recognize clicking either the Center key, the Enter key or the thumbwheel. Some fields recognize it and others don't. Some of the fields that don't recognize it are the fields with date pickers. Any suggestions? I inherited this application from another programmer and am also having a problem with an Input box that was set up to accept information that will be entered into a Notes field. Once I get into the input box I can't get out unless I turn off the phone. It is a basic Input Box with an 'okay' and a 'cancel' button. Any suggestions on how I can get the Input Box to recognize the tab key so I can click the okay button? Thanks in advance


This is the new go-to place for AppForge questions.

The short answer to your question is to make sure that your controls have their TabStop = True and set the TabIndexes in order from 0 to n, with 0 being your topleftmost control, increasing to the right and down.

The control with TabIndex = 0 should get the focus when the form is first loaded.

Set TabStop = False for any control you don't want to have focus.
JimDionne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

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


All times are GMT -5. The time now is 06:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Integrated by BBPixel ©2003-2008, jvbPlugin
Android forums

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32