BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-01-2008, 09:38 AM   #1 (permalink)
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Post Thanks: 4
Thanked 0 Times in 0 Posts
Unhappy in pure J2ME MIDlet Canvas I want to display a Marquee

Please Login to Remove!

just like tickers in the lists, i want to display Marquee on a Canvas. (Only on Blackberry, because in other J2ME supporting devices it runs fine in MIDlet)
I have used Timer-Task , and with some logic I am shifting the position of the string.
I have done it using the repaint() and Thread,sleep();
In Blackberry the string is not moving as in MIDlet. Instead it only moves when the trackerball rolls.
I want the app stop waiting for the trackerball event and just moves on showing marquee.
It seems the app dosn't respond to the repaint() call.
I have just 24 hours left for doing that. Maybe I can borrow some more time but at least today I am in great hurry.
Offline  
Old 08-04-2008, 05:58 AM   #2 (permalink)
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Post Thanks: 4
Thanked 0 Times in 0 Posts
Smile

Ok You can use Display.getDisplay(midlet).callSerially()
please check out the JavaDoc for this function.
It surely works out.
You just have to arrange your sprites accurately, and there might not be a need to use (Graphics) g.serviceRepaints() to refresh the Canvas.
Offline  
Closed Thread


Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New Allen Bradley 802T-AP Plug-in Oiltight Limit Switch Series J With Instr
$65.0
New Allen Bradley 802T-AP Plug-in Oiltight Limit Switch Series J With Instr pictureAllen-Bradley Push Button Switch CAT 800T-A. . . Series T Nema 4, 13
$25.0
Allen-Bradley Push Button Switch CAT 800T-A. . . Series T Nema 4, 13 pictureAllen-Bradley 800T-XD1 Series C Contact Block
$9.0
Allen-Bradley 800T-XD1 Series C Contact Block pictureHONEYWELL DTE6-2RQ81 Limit Switch, Cross Roller Plunger NIB
$109.99
HONEYWELL DTE6-2RQ81 Limit Switch, Cross Roller Plunger NIB pictureTelemecanique ZB2-BE101 ZB2BE101 2 Position Maintained Key Selector Switch (TB)
$19.99
Telemecanique ZB2-BE101 ZB2BE101 2 Position Maintained Key Selector Switch (TB) picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.