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

FANUC A20B-2000-0600/03A MEMORY CARD ADAPTER BOARD
$59.95
FANUC A20B-2000-0600/03A MEMORY CARD ADAPTER BOARD pictureSimatic SINEC 6GK1143-0TA02 & MEMORY Flash 6ES5 374-2kh21
$480.0
Simatic SINEC 6GK1143-0TA02  & MEMORY Flash 6ES5 374-2kh21 pictureDOORKING DKS 1838-144 MEMORY CHIP OPEN BUT DONT THINK IT WAS EVER USED
$30.0
DOORKING DKS 1838-144 MEMORY CHIP OPEN BUT DONT THINK IT WAS EVER USED pictureSTM - M25P64-VMF6P - 64 Mbit, Low Voltage, Serial Flash Memory With 50MHz, NEW
$4.56
STM - M25P64-VMF6P - 64 Mbit, Low Voltage, Serial Flash Memory With 50MHz, NEW pictureSPANSION - S29GL256P11TF101 - 3.0 Volt Flash Memory 90 nm MirrorBit Process, NEW
$4.56
SPANSION - S29GL256P11TF101 - 3.0 Volt Flash Memory 90 nm MirrorBit Process, NEW picture






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