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


CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



EEPROM BIOS USB Programmer CH341A + SOP8 Clip + 1.8V Adapter + SOP8 Adapter picture

EEPROM BIOS USB Programmer CH341A + SOP8 Clip + 1.8V Adapter + SOP8 Adapter

$14.45



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$17.98



REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB) picture

REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB)

$139.00



93C86 Microchip MSOP-8 EEPROM IC USA Seller 🇺🇸 picture

93C86 Microchip MSOP-8 EEPROM IC USA Seller 🇺🇸

$8.00



REVELPROG-IS (ICSP FLASH SPI BIOS PROGRAMMER) + SOIC-8 200mil + SOIC-8 CLIP picture

REVELPROG-IS (ICSP FLASH SPI BIOS PROGRAMMER) + SOIC-8 200mil + SOIC-8 CLIP

$190.00







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