You Are Here:

Community: Developer Discussion Boards

#1 Old I have some Questions! - 2008-12-10, 10:43

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
1)I need the glcanvas and gles modules for 2en edition phone(3230),can you help me ?
2)can I program a floating TopWindow?if I have two windows on the screen,how can I switch between them? and can I draw someting on the TopWindow?can you give some exclusive app using the TopWindow?
3)I have drawn a round rectangle using the line() and arc()method,but then how to fill it with some color?
That's all!
longing for your help...
Reply With Quote

#2 Old Re: I have some Questions! - 2008-12-10, 11:32

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by xiaobu View Post
1) I need the glcanvas and gles modules for 2en edition phone(3230),can you help me ?
The underlying software and hardware is missing, so this is not possible.


Quote:
Originally Posted by xiaobu View Post
3) I have drawn a round rectangle using the line() and arc()method,but then how to fill it with some color?
Use pieslice() or ellipse() for the corners instead of arc(), so you can use the fill parameter. Then fill the interior with two rectangle()s or one polygon().
Reply With Quote

#3 Old Re: I have some Questions! - 2008-12-10, 14:42

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
Quote:
Originally Posted by xiaobu View Post
2)can I program a floating TopWindow?if I have two windows on the screen,how can I switch between them? and can I draw someting on the TopWindow?can you give some exclusive app using the TopWindow?
Perhaps you should explain a bit better what you mean by "floating" TopWindow. This article shows some things you can do with top window. Basically you draw on it by drawing on the image it holds.

As for switching between 2 windows, please explain a bit more.
Reply With Quote

#4 Old Re: I have some Questions! - 2008-12-10, 15:13

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
as for "floating Window",I mean "dynamic" , not static.
----
and I have get it how to "switching between two",thanks for your help.
Reply With Quote

#5 Old Re: I have some Questions! - 2008-12-10, 15:22

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
It can be moved around on the screen by hiding it, changing it's coordinates and showing it again. This is done very fast so the movement would be seamless. Is that what you meant?
Reply With Quote

#6 Old Re: I have some Questions! - 2008-12-10, 15:33

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
Quote:
Originally Posted by jethro.fn View Post
The underlying software and hardware is missing, so this is not possible.




Use pieslice() or ellipse() for the corners instead of arc(), so you can use the fill parameter. Then fill the interior with two rectangle()s or one polygon().
you mean a 3D app will not run efficiently ?it's a pity!
----
aha! "Use pieslice()" is a good idea,I will have a try,thanks!but I make little of "two rectangle()s or one polygon()",can you give me a code example?just use the polygon() to fill.
Reply With Quote

#7 Old Re: I have some Questions! - 2008-12-10, 15:43

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
Quote:
Originally Posted by bogdan.galiceanu View Post
It can be moved around on the screen by hiding it, changing it's coordinates and showing it again. This is done very fast so the movement would be seamless. Is that what you meant?
yes!yes! just hide(),then change position,then show()?
thanks,I will try.
Reply With Quote

#8 Old Re: I have some Questions! - 2008-12-10, 19:14

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by xiaobu View Post
I make little of "two rectangle()s or one polygon()",can you give me a code example?just use the polygon() to fill.
Well, you can give a fill-parameter to either rectange() or polygon() and set outline to None, so there will be no outline. You just need to figure out the area which needs to be filled between the corner ellipses/pieslices. It's an exercise on pen and paper.
Reply With Quote

#9 Old Re: I have some Questions! - 2008-12-11, 10:27

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
The attached image contains an illustration which may be easier to implement than what I suggested before. It uses ellipses, rectangles and lines to create a rounded rectangle.
Attached Images
File Type: png roundedrect.png (7.2 KB, 34 views)
Reply With Quote

#10 Old Re: I have some Questions! - 2008-12-11, 14:44

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
Quote:
Originally Posted by jethro.fn View Post
The attached image contains an illustration which may be easier to implement than what I suggested before. It uses ellipses, rectangles and lines to create a rounded rectangle.
Oh,god!that's perfect! can't thank you any more!
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
20 questions game Jimbo43 Python 2 2008-04-14 18:04
need help with my sms sender code (back with some topical questions this time) kururu General Symbian C++ 0 2008-03-02 19:44
Questions Not In Forum JAgoika Mobile Java General 5 2004-10-22 17:31
some questions on NOKIA/symbian development, thank you! trendin Mobile Java General 1 2004-03-18 12:38
some questions on NOKIA/symbian development, thank you! trendin General Symbian C++ 4 2003-12-11 04:43

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