You Are Here:

Community: Developer Discussion Boards

#1 Old app.body, Text and focus... - 2008-09-26, 10:09

Join Date: Jan 2007
Posts: 80
nono240
Offline
Regular Contributor
Hi there !

My app have multiple tabs, each 'owning' a Text object. My app is something like a multhreaded syslog server, asynchronously updating the tabs.
My problem is that when I add text to a Text object, which is not 'visible' (app.body != Text), it gain focus and appears...
It's really annoying.

Am I missing something ?


In a world without Walls nor Windows, who need Gates ?
Reply With Quote

#2 Old Re: app.body, Text and focus... - 2008-09-26, 13:29

Join Date: Jul 2008
Posts: 103
ck.umraliya's Avatar
ck.umraliya
Offline
Forum Nokia Champion
Quote:
My app have multiple tabs, each 'owning' a Text object. My app is something like a multhreaded syslog server, asynchronously updating the tabs.
My problem is that when I add text to a Text object, which is not 'visible' (app.body != Text), it gain focus and appears...
hi nono240
it will be easy to help you if you put some light on the coding you are implementing.

Regards
Chintan
Reply With Quote

#3 Old Re: app.body, Text and focus... - 2008-09-26, 14:52

Join Date: Jan 2007
Posts: 80
nono240
Offline
Regular Contributor
The code is trivial. There's 1 Listbox + n Text object. The tab handler take care of attributing app.body to the current tab:


Code:
bodies = [ Listbox(), Text(), Text() ]

def tab_handler(i):
    app.body = bodies[i]
There's one thread by Text object, adding text continuously (through a callgate to allow threads to manipulate UI).

Switching from a Text to a Listbox while text is added continue to draw on screen : it seems more like a refresh problem.
Here's a picture.


In a world without Walls nor Windows, who need Gates ?
Last edited by nono240 : 2008-09-26 at 14:57.
Reply With Quote

#4 Old Re: app.body, Text and focus... - 2008-09-26, 15:05

Join Date: Jul 2008
Posts: 103
ck.umraliya's Avatar
ck.umraliya
Offline
Forum Nokia Champion
hi nono240

Not sure but i feel when you do not need to display text continuously you can add the text to a variable and display it to the tab only when needed.
Thus the text is added to variable not to object directly.

Regards
Chintan
Reply With Quote

#5 Old Re: app.body, Text and focus... - 2008-09-26, 15:09

Join Date: Jan 2007
Posts: 80
nono240
Offline
Regular Contributor
Quote:
Originally Posted by ck.umraliya View Post
you can add the text to a variable and display it to the tab only when needed.
It's what I do for the moment, but this is not 'visual efficient' since there's a lot of data added...


In a world without Walls nor Windows, who need Gates ?
Reply With Quote

#6 Old Re: app.body, Text and focus... - 2008-09-26, 15:13

Join Date: Jul 2008
Posts: 103
ck.umraliya's Avatar
ck.umraliya
Offline
Forum Nokia Champion
Quote:
Originally Posted by nono240 View Post
It's what I do for the moment, but this is not 'visual efficient' since there's a lot of data added...
hi
well i feel then you should try some string formatting method while adding data.
Hope it will work.

Regards
Chintan Umraliya
Reply With Quote

#7 Old Re: app.body, Text and focus... - 2008-09-26, 15:19

Join Date: Jan 2007
Posts: 80
nono240
Offline
Regular Contributor
What string formating have to do with my problem ? The visual inefficiency I talked about is that adding text stored in a variable when tabs is displayed is NOT a great visual effect when there's a lot of text to add !

I'd prefer adding text as it arrives. But there's defect in display (see picture link above).


In a world without Walls nor Windows, who need Gates ?
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
Text Field Focus Problem with J2me(j2me Polish) pollux.java Mobile Java Networking & Messaging & Security 1 2008-05-04 17:03
javascript set focus to input text box ?? zaponjanx Browsing and Mark-ups 5 2008-03-12 10:52
Problems when changing text in edwin while in FEP transaction thedawn1977 Symbian User Interface 1 2007-09-07 16:38
CEikEdwin in CAknDialog (Text Menu) grapentin Symbian User Interface 0 2007-03-22 10:47
Can we set textbox focus to the last character? dhanyap Mobile Java General 1 2006-11-17 08:07

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