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 CONTRINEX Proximity Switch DW-AS-623-M8-124.
$27.0
New CONTRINEX Proximity Switch DW-AS-623-M8-124. pictureAC 600V 6A 38mm 1.5" Red Sign Momentary Mushroom Push Button Switch 1 NO 1 R4C5
$2.79
AC 600V 6A 38mm 1.51PCS BALLUFF Proximity Switch BES M18MI2-PAH80B-S04G Sensor
$108.0
1PCS BALLUFF Proximity Switch BES M18MI2-PAH80B-S04G   Sensor picture1998 NAKAMURA SLANT 50 SAFETY RELAY LIMIT SWITCH NIX 0N00 EDM CNC
$60.0
1998 NAKAMURA SLANT 50 SAFETY RELAY LIMIT SWITCH NIX 0N00 EDM CNC picture16 mm 12V 3A Automotive Metal Self - locking Button Switch Yellow C8B3
$3.19
16 mm 12V 3A Automotive Metal Self - locking Button Switch Yellow C8B3 picture






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