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


Used National Instruments SCXI-1000 Mainframe 1200 1120 1160(2) 181445D-01 U2 picture

Used National Instruments SCXI-1000 Mainframe 1200 1120 1160(2) 181445D-01 U2

$299.95



Fluke Networks Versiv Modular Mainframe AS IS picture

Fluke Networks Versiv Modular Mainframe AS IS

$1100.00



Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96



Tektronix TM506 Modular 6-bay Mainframe Compartment for power 6-Slot READ DESCRP picture

Tektronix TM506 Modular 6-bay Mainframe Compartment for power 6-Slot READ DESCRP

$124.95



Tektronix 7904 Oscilloscope Mainframe  w/ 2x 7A26 2x 7B92A Modules picture

Tektronix 7904 Oscilloscope Mainframe w/ 2x 7A26 2x 7B92A Modules

$399.97



USED 100%Tested NI PXI-1033 Mainframe Offers pxi 1033  picture

USED 100%Tested NI PXI-1033 Mainframe Offers pxi 1033

$780.90







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