You Are Here:

Community: Developer Discussion Boards

#1 Old Beginners Trouble! - 2008-02-05, 22:26

Join Date: Nov 2007
Posts: 26
neil1811
Offline
Registered User
Hi. Im just trying to have a sample app that has a number of tabs, in one tab i want to allow the user to simple enter in a search term into a text field..

i can enter the word into the text field but the tabs are not there. This means that if a user wanted to move to a different tab without entering something into the field they cant.

The text box takes priority.. if that makes sense.

how can i simple display in my tab.. the text field.

here is the code i have for the particular tab.
=======================
# define application 1: listbox app

# define the list of items as pop-up menu content
M1 = [u"Enter Search Terms: "]

def forming():
data = [(u'Search:','text', u'Nokia')]

# set the view/edit mode of the form
flags = appuifw.FFormEditModeOnly

# creates the form
f = appuifw.Form(data, flags)

# make the form visible on the UI
f.execute()


# create the listbox callback handler
def handler_M1():
print "ola" # FOR DEBUGGING

# create the pop-up menu
app1 = appuifw.Listbox(M1, handler_M1)



# call the function that creates the form
forming()

def exit_key_handler():
app_lock.signal()
=====================

so basically, i want to have the tabs visible.. and the text field displayed, so that the user can enter a term.... if they want to.

screen should look like
----------
<tab1><tab2>
----------
Enter Search Term: [text field]
-------------------------------

instead of

enter search term: !!

Thanks Guys, Sorry if this is a silly question havent had much time using this yet

Neil
Reply With Quote

#2 Old Re: Beginners Trouble! - 2008-02-06, 06:43

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Hello neil,

Your code to create the Form is fine.
If you want to use tabs as you have mentioned have a look at an example here
I think thats where you ported the Form code from

However I can't understand what you mean by last few lines.
Quote:
screen should look like
----------
<tab1><tab2>
----------
Enter Search Term: [text field]
-------------------------------

instead of

enter search term: !!
Best Regards
Croozeus

PS: Use the CODE tags(#) to post code. By doing this it makes sure that your indentations in the code are preserved.
Reply With Quote

#3 Old Re: Beginners Trouble! - 2008-02-06, 10:41

Join Date: Nov 2007
Posts: 26
neil1811
Offline
Registered User
yep i took that, but now trying to adapt it.. i mean that yes the form is correct. But when the text field comes up it sort of takes over the app. as in a user HAS to enter into the field before they can move between tabs. i just want to have the text field there but the user can switch between tabs whenever they want without having to enter something if they dont want to.

It seems hard to explain.. if its not clear do not worry im sure ill get it,

Thanks AGAIN croozeus!!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Nokia PCSuite setup trouble: the ultimate solution? surfmaxx PC Suite API and PC Connectivity SDK 1 2006-10-04 10:52
trouble with a CAknPopupList shadow-2005 General Symbian C++ 0 2006-02-08 05:49
trouble with the screen in nokia6600 mattalyc General Discussion 0 2004-08-10 18:37
Jpeg-Support - any trouble with special models Frankee Mobile Java General 0 2004-02-16 11:56
P800 J2ME game. i'm in trouble because of keypad shahzad73 Mobile Java General 0 2002-11-21 04:22

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia