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


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

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

Forum Jump


New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598

$36.05



A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board picture

A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board

$350.00



Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW picture

Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW

$79.95



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ

$228.00



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00



MITSUBISHI A500 / FR-A540-5.5K-NA INVERTER 3PH  picture

MITSUBISHI A500 / FR-A540-5.5K-NA INVERTER 3PH

$108.00







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