BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-23-2008, 05:24 PM   #1
JoelParker
New Member
 
Join Date: Aug 2008
Model: Curve
PIN: N/A
Carrier: T-Mobile
Posts: 13
Default Layout Manager Help

Please Login to Remove!

My application is derived from the MainScreen so I am using the vertical layout manager as the default manager which is fine except I want a row of buttons at the bottom of the screen. How can I do this? (ie. Add label field, seperator field, list field, etc. (all vertical) but then a row of buttons at the bottom of the screen).
Offline  
Old 08-23-2008, 10:06 PM   #2
RemyJ
CrackBerry Addict
 
Join Date: May 2005
Location: Golden, CO US
Model: 9700
Carrier: ATT
Posts: 684
Default

Add a HorizontalFieldManager to the default VerticalFieldManager, then add your buttons to the HFM.
Offline  
Old 08-24-2008, 08:50 AM   #3
JoelParker
New Member
 
Join Date: Aug 2008
Model: Curve
PIN: N/A
Carrier: T-Mobile
Posts: 13
Default

Thanks, is there a way to have it always aligned with the bottom of the screen, instead of just stacked under my other fields?
Offline  
Old 08-24-2008, 10:01 AM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

Instead of adding the HorizontalFieldManager to the MainScreen use MainScreen.setStatus(Field hrm).
Offline  
Old 08-24-2008, 02:23 PM   #5
JoelParker
New Member
 
Join Date: Aug 2008
Model: Curve
PIN: N/A
Carrier: T-Mobile
Posts: 13
Default

Great, Is there a way to space the buttons evenly across the whole bottom?
Offline  
Old 08-25-2008, 10:08 AM   #6
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

You could either over ride the paint method of the buttons to make them the same size, or the paint method of the manager to space them evenly.
Offline  
Old 08-25-2008, 02:33 PM   #7
CELITE
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Default

Alternatively, you can precalculate the space you need and use setPadding on the button field.
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


FANUC Servo Amplifier A06B-6240-H208 picture

FANUC Servo Amplifier A06B-6240-H208

$3199.00



MITSUBISHI Amplifier MR-J2S-200B MRJ2S200B AC Servo Drive New in box picture

MITSUBISHI Amplifier MR-J2S-200B MRJ2S200B AC Servo Drive New in box

$463.00



1pcs Fanuc Servo Amplifier A06B-6077-H002 New by DHL or EMS picture

1pcs Fanuc Servo Amplifier A06B-6077-H002 New by DHL or EMS

$1089.00



Voice Amp Amplifier Model 200260 Scott EPIC Safety Compatible w AV3000 AV2000 picture

Voice Amp Amplifier Model 200260 Scott EPIC Safety Compatible w AV3000 AV2000

$60.00



NEW IN BOX Allen-Bradley 2094-AM02-S /A Kinetix Axis Module 200/230V 15A Spot picture

NEW IN BOX Allen-Bradley 2094-AM02-S /A Kinetix Axis Module 200/230V 15A Spot

$1227.00



Voice Amp Amplifier 201141-01 3M Scott EPIC 3 Safety Compatible w AV3000 AV2000 picture

Voice Amp Amplifier 201141-01 3M Scott EPIC 3 Safety Compatible w AV3000 AV2000

$69.99







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