| Reply | « Previous Thread | Next Thread » |
|
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 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
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. |
|
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 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
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).
|
|
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 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
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.
|
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |