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

H2S Monitor, MSA ALTAIR Hydrogen Sulfide Single Gas Detector Part#10092521
$79.0
H2S Monitor, MSA ALTAIR Hydrogen Sulfide Single Gas Detector Part#10092521 pictureMsa H2s Altair Pro Single Gas Detector,10074136,cal Cert Included
$42.0
Msa H2s  Altair Pro Single Gas Detector,10074136,cal Cert Included pictureMsa Altair Pro O2
$15.0
Msa Altair Pro O2  pictureMSA Xcell Sensor Adapter for Altair 5x, 10110183
$29.99
MSA Xcell Sensor Adapter for Altair 5x, 10110183 pictureMSA Altair 4x And 5x 10106729 XCELL REPLACEMENT SENSOR, O2
$115.0
MSA Altair 4x And 5x 10106729 XCELL REPLACEMENT SENSOR, O2 picture






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