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





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