BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-20-2009, 06:37 AM   #1
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Default how to set the position of HorizontalFieldManager in mainscreen.

Please Login to Remove!

hi..i have created a toolbar ,using HorizontalFieldManager which contains custom
ButtonFields ........and i am trying to add this manager at bottom in mainscreen....using following code...

HorizontalFieldManager hManager = new HorizontalFieldManager(Field.FIELD_BOTTOM);

it is not working ...and manager is adding at top area of screen only.......
any help?
Offline  
Old 03-20-2009, 10:35 AM   #2
CJLopez
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
Default

easy, before you push your main screen, add the hManager. Something like this
PHP Code:
public class mainScreenSample extends MainScreen
{
    public 
mainScreenSample()
    {
        .
        .
        .
        .
        
add(new Field());
        
add(new Field());
        
add(new Field());
        
add(new Field());
        
add(hManaeger);
        .
        .
        .
        .
        
pushScreen(this);
    }

This way, you'll be adding your manager until the end of the MainScreen and it will be on the botom of it

You could also create a layout Manager of the form and in it you ad the fields and indicates the priority of the field, where the priority the lowest number is the greatest priority but the way i put it is the easiest to have your hManager on the botom of the MainScreen
Offline  
Old 03-21-2009, 08:07 AM   #3
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Default

thank u very much dear......i got it....
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


OEM Dell 3310 2 in 1 LCD Touch Screen D2TNH NV133FHM-T00 06GHX8 picture

OEM Dell 3310 2 in 1 LCD Touch Screen D2TNH NV133FHM-T00 06GHX8

$54.00



OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$13.81



Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M picture

Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M

$2.95



Dell OEM Latitude Rugged Extreme 7404 Ribbon Cable for ExpressCard Cable G52B00 picture

Dell OEM Latitude Rugged Extreme 7404 Ribbon Cable for ExpressCard Cable G52B00

$9.95



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98







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