BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-23-2006, 07:27 AM   #1
456456s
New Member
 
Join Date: Aug 2006
Model: 7520
Posts: 3
Unhappy Regarding ButtonField Class

Please Login to Remove!

hi all,
I am using ButtonField Class for creating buttons for my Front End.
But I am facing problems when i try to change the default blue colour of the button background.
I tried overriding the paint method but only a part of the button changes to colour specified the outline is always blue which im unable to change.
If anyone has solution please reply.
Offline  
Old 08-23-2006, 07:50 AM   #2
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

i don't think there is an override for this. i've seen the same query on the rim site and i'm pretty sure there wasn't anything able to do this.
Offline  
Old 08-30-2006, 09:07 AM   #3
TicK
New Member
 
Join Date: Aug 2006
Model: 8700
Posts: 4
Default

Actually, you can do this by overriding the drawFocus().
Offline  
Old 08-30-2006, 10:13 AM   #4
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

does that override the whole button though? when i've tried overrides like this on buttons before some of the theme is still visible and it ends up looking a mess.
Offline  
Old 08-30-2006, 12:01 PM   #5
TicK
New Member
 
Join Date: Aug 2006
Model: 8700
Posts: 4
Default

From what I understand you're trying to get rid of or change the blue background when your buttonfield is focused correct? The drawFocus() in your button field takes care of that so if you override, you can either draw your own focus or leave it blank to get rid of the focus completely.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00



Altair WBS-202 Dual channel wireless intercom base station picture

Altair WBS-202 Dual channel wireless intercom base station

$1350.00



🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger picture

🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger

$399.99



MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222 picture

MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222

$332.65



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$199.00



New MSA Altair Pro O2 Gas Detector (Part Number 10074137c) - Open Box picture

New MSA Altair Pro O2 Gas Detector (Part Number 10074137c) - Open Box

$269.99







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