BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-10-2010, 02:09 AM   #1 (permalink)
New Member
 
Join Date: Oct 2010
Model: 7100T
PIN: N/A
Carrier: Vodafone
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default customizing the object choice field

Please Login to Remove!

hai
i am trying to customize my objectchoice field.
i have done following changes
1.i have created the objectchoice field object.
2.in the paint method
1.i ll draw the roundrect and placed picture(dropdown image)

my prb is
my objectchoice field is always in the left of roundrect.
i want to place it in the middle of roundrect.

i have referred this article in this forum

developer-forum/239636-blackberry-application-not-shown-emulator.html

would you provide me some more details
how to customize it.
Offline  
Old 11-10-2010, 03:48 AM   #2 (permalink)
New Member
 
Join Date: Nov 2010
Model: 7100T
PIN: N/A
Carrier: Vodafone
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

You can try and extend ObjectListField to a custom class and override the method-- public void drawListRow(ListField lf, Graphics g,int index,int y,int width)
and use the graphics object in this method to customize the drawing as required.
The proper signature for the method can be referred in the API docs.
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

SMPTE Output Studio 16 Extras The Complete SMPTE Generator For Your Amiga
$14.99
SMPTE Output Studio 16 Extras The Complete SMPTE Generator For Your Amiga picture23 WAY "D" SHELL HOOD DB23 D23 DB23F DB23M FOR COMMODORE AMIGA CONNECTORS - RARE
$2.57
23 WAY Toshiba TMP68HC000P-16 16mhz 68000 CPU Chip, Amiga Atari Apple Mac
$22.0
Toshiba TMP68HC000P-16 16mhz 68000 CPU Chip, Amiga Atari Apple Mac pictureAMIGA AMIGA A107-335D RQAUS1
$36.1
AMIGA AMIGA A107-335D RQAUS1 pictureCommodore AMIGA CSG 8520 Chip IC 500/A500+/A2000 CDTV - NEW
$12.99
Commodore AMIGA CSG 8520 Chip IC  500/A500+/A2000 CDTV - NEW picture






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