You Are Here:

Community: Developer Discussion Boards

#1 Old Thread in canvas - 2006-07-14, 12:49

Join Date: Jul 2006
Posts: 10
Location: Kuala Lumpur
Send a message via Yahoo to man4mobile
man4mobile
Offline
Registered User
I'm creating ticker on canvas...since i want a customized appearance....but it seems conflicted with the repaint() of content below the ticker. Anyone can help me about creating different behaviour on one canvas at a time...?
Thx :)
Reply With Quote

#2 Old Re: Thread in canvas - 2006-07-14, 15:51

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

ticker on canvas is just a drawn string, you need simply change x/y values (or translate graphics) at time for example using timer,
you can update only part of canvas where ticker it to be paint without redrawing entire canvas,
What issue you have with that?

regards,
Peter
Reply With Quote

#3 Old Re: Thread in canvas - 2006-07-14, 21:01

Join Date: Jul 2006
Posts: 10
Location: Kuala Lumpur
Send a message via Yahoo to man4mobile
man4mobile
Offline
Registered User
Hi peter...
Suppose I want to make a ticker and also another animation in one canvas...how does the mechanism so that each animation (ticker and the other one) doesn't conflict each other (free to each other..)? Coz as far as I know, there's only one method to draw the canvas, using paint().
About making ticker, I already know that it's just as simple as changing the x value :)
Thx for your response :)
Reply With Quote

#4 Old Re: Thread in canvas - 2006-07-15, 14:28

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Quote:
Originally Posted by man4mobile
Hi peter...
Suppose I want to make a ticker and also another animation in one canvas...how does the mechanism so that each animation (ticker and the other one) doesn't conflict each other (free to each other..)? Coz as far as I know, there's only one method to draw the canvas, using paint().
The paint() method should only have code to draw the screen in it's current state. You shouldn't have any logic in it so you're able to redraw as often as necessary (or possible ;P).
The control of the state for each animation should be in a separate method or methods. You could use a couple of Timers for that, or a couple of threads, but personally I'd use one thread that can figure out how much time has passed and knows when to update what elements of the screen.

shmoove
Reply With Quote

#5 Old Re: Thread in canvas - 2006-07-17, 06:53

Join Date: Jul 2006
Posts: 10
Location: Kuala Lumpur
Send a message via Yahoo to man4mobile
man4mobile
Offline
Registered User
thx :) i'll try that...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Emulator crash immediatly after launched, SDK of S60 3nd loopfinder Symbian Tools & SDKs 20 2009-07-26 23:36
console app running problem xcompass General Symbian C++ 3 2009-05-08 14:26
Link errors when trying to Display bitmap Bkc82 Symbian Media (Graphics & Sounds) 1 2006-01-16 23:46
Thread function not being called kamalsinghania General Symbian C++ 5 2006-01-04 13:28
Major problem with delegation to Canvas bartekn Mobile Java Media (Graphics & Sounds) 8 2003-10-08 18:46

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