BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-20-2009, 06:37 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Lot of 6 - Polycom SoundPoint IP 320 SIP VoIP Office Phone for Business USED
$89.95
Lot of 6 - Polycom SoundPoint IP 320 SIP VoIP Office Phone  for Business USED pictureViking E-30-IP-EWP VoIP Entry Phone Stainless Steel with EWP
$475.51
Viking E-30-IP-EWP VoIP Entry Phone Stainless Steel with EWP picturePolycom VVX 410 12-Line VOIP IP SIP Gigabit Business Media Phone
$52.0
Polycom VVX 410 12-Line VOIP IP SIP Gigabit Business Media Phone pictureCyberdata 011061 VoIP Paging Amplifier SIP Compatible Night Ringer Function
$453.25
Cyberdata 011061 VoIP Paging Amplifier SIP Compatible Night Ringer Function pictureAvaya 9650 IP Phone with Stand Included. VOIP Phone.
$59.0
Avaya 9650 IP Phone with Stand Included. VOIP Phone.  picture






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