You Are Here:

Community: Developer Discussion Boards

#1 Old Separate screen into two parts (one fixed) - 2009-11-03, 23:42

Join Date: Sep 2009
Posts: 14
Location: Napoli - Italy
Send a message via ICQ to antoniog85 Send a message via MSN to antoniog85 Send a message via Skype™ to antoniog85
antoniog85
Offline
Registered User
hi,
i have to separate then screen into two parts.
The first is the main, with text and vertical scrollbar.
The second, more little (about two lines), must be always on the bottom of display (fixed).
Who can I do this?
Thank you.


Antonio GIULIANA
www.antoniogiuliana.it
Reply With Quote

#2 Old Re: Separate screen into two parts (one fixed) - 2009-11-04, 05:10

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
Hi,

I'm not sure I understand exactly but you can set appuifw.app.screen to 'large'; that way only the application's body and softkey labels are visible.

Perhaps it would help if you drew us a picture of what you want the screen to look like exactly. Or if you have a screenshot, that's even better.
Reply With Quote

#3 Old Re: Separate screen into two parts (one fixed) - 2009-11-04, 10:40

Join Date: Sep 2009
Posts: 14
Location: Napoli - Italy
Send a message via ICQ to antoniog85 Send a message via MSN to antoniog85 Send a message via Skype™ to antoniog85
antoniog85
Offline
Registered User
Excuse me but I'm Italian.
You can find an image of screenshot here: http://img38.imageshack.us/img38/5635/senzanome1j.jpg
Thank you


Antonio GIULIANA
www.antoniogiuliana.it
Reply With Quote

#4 Old Re: Separate screen into two parts (one fixed) - 2009-11-04, 12:21

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
It's not possible to have that fixed part above menu1 and menu2, unfortunately. Not unless you draw everything on a canvas and only modify the top (the part with the scroll bar, which you would also have to draw).
Reply With Quote

#5 Old Re: Separate screen into two parts (one fixed) - 2009-11-04, 12:44

Join Date: Sep 2009
Posts: 14
Location: Napoli - Italy
Send a message via ICQ to antoniog85 Send a message via MSN to antoniog85 Send a message via Skype™ to antoniog85
antoniog85
Offline
Registered User
Ok, but I dont't understand very well how can I modify only the top (the part with the scroll bar).
When I put a long text in the main part (on the top), the scrollbar scroll everything, also the part on the bottom...


Antonio GIULIANA
www.antoniogiuliana.it
Reply With Quote

#6 Old Re: Separate screen into two parts (one fixed) - 2009-11-04, 18:01

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
The only way to do it is if you display everything on a canvas. That means you have to draw the text (or whatever) and the fixed area and the scrollbar yourself. That way you can modify whatever part you want while the rest stays the same. It's not easy.
Reply With Quote

#7 Old Re: Separate screen into two parts (one fixed) - 2009-11-05, 08:49

Join Date: Jun 2009
Posts: 3
mudkipz
Offline
Registered User
Very simple example of how to divide the screen

Code:
from graphics import *
from key_codes import *
import e32, appuifw

img=None

appuifw.app.screen='normal'

def handle_redraw(rect):
    if img:
        canvas.blit(img)
appuifw.app.body=canvas=appuifw.Canvas(redraw_callback=handle_redraw)
img=Image.new(canvas.size)

labeltext=u'Here is the top half of the window'
textrect=img.measure_text(labeltext, font='normal')[0]
text_img=Image.new((textrect[2]-textrect[0],textrect[3]-textrect[1]))
text_img.clear(0)
text_img.text((-textrect[0],-textrect[1]),labeltext,fill=0xffffff,font='normal')
labeltext2=u'Here is the bottom half of the window'
textrect=img.measure_text(labeltext2,font='normal')[0]
text_img2=Image.new((textrect[2]-textrect[0],textrect[3]-textrect[1]))
text_img2.clear(0)
text_img2.text((-textrect[0],-textrect[1]),labeltext2,fill=0xffffff,font='normal')


running=1

while running:
    img.clear(0)
    img.blit(text_img, (0,0))
    img.blit(text_img2, (0,-30))
    handle_redraw(())
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
google maps by get method of http, displaying them and showing navigation on screen sanee Symbian Media (Graphics & Sounds) 5 2008-09-26 16:21
what is method that solve display overlap error during moving screen? cklne Symbian User Interface 10 2008-09-24 13:06
from full screen to normal screen Skygyl Symbian User Interface 2 2008-08-21 07:56
How to know the current view is an Editable Screen jobincantony Symbian User Interface 1 2008-04-07 08:00
Redrawing parts of the screen on a 6310i cs6c Mobile Java General 0 2002-12-02 11:38

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