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


6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS picture

6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS

$5.89



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



MOSTEK Z80  DIP CPU 40 Pin Genuine Commodore 128/PET processor picture

MOSTEK Z80 DIP CPU 40 Pin Genuine Commodore 128/PET processor

$3.49



Commodore 9R-25 Calculator 4.5v Vintage Retro picture

Commodore 9R-25 Calculator 4.5v Vintage Retro

$24.99



Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Vintage Holt Commodore Commercial Floor Scrubber Polisher Buffer Burnisher 20

Vintage Holt Commodore Commercial Floor Scrubber Polisher Buffer Burnisher 20"

$399.99







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