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

PCB M8_REV.07 R00 ST1000LM024 Samsung P/N: HN-M101MBB/AV2 20140112, PCB ONLY
$54.0
PCB M8_REV.07 R00 ST1000LM024 Samsung P/N: HN-M101MBB/AV2 20140112, PCB ONLY pictureSamsung Prostar DCS 12B Almond Display Speakerphone A-Stock Refurbished
$39.99
Samsung Prostar DCS 12B Almond Display Speakerphone A-Stock Refurbished pictureSAM4'S ER 650 6500 300 320 5200 M / 5215 M Cash Register VD (Void) Key
$4.99
SAM4'S ER 650 6500 300 320 5200 M / 5215 M Cash Register VD (Void)  Key pictureSAMSUNG KMM5664100TG-6S MEMORY MODULE *NEW NO BOX*
$71.0
SAMSUNG KMM5664100TG-6S  MEMORY MODULE *NEW NO BOX* pictureSamsung iDCS 28D Digital Phone
$35.0
Samsung iDCS 28D Digital Phone picture






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