BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-17-2009, 02:47 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8310
PIN: N/A
Carrier: google
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default set manager position?

Please Login to Remove!

can I set my own manager position?
ex : in the center of bb display
Offline  
Old 11-17-2009, 03:50 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

int leftSpace =(Graphics.getScreenWidth()-yourmgr. getPreferredWidth())/2;
int topSpace = (Graphics.getScreenHeight()-yourmgr. getPreferredHeight())/2;

1. use yourmgr.setpadding(topSpace,0,0,0,leftspace);
2. use another parent manager and add your manager in this manager and override
sublayout of parent manager.
layoutChild(getField(0), yourmanager.getPreferredWidth(), yourmanager.getPreferredHeight());
setPositionChild(yourmanager, leftSpace , topSpace);
setExtent(maxWidth, f1.getPreferredHeight());
__________________
blog.vimviv.com
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

Veterinary Handheld Ultrasound Scanner Machine Rectal Transducer + Oximeter
$959.0
Veterinary Handheld Ultrasound Scanner Machine  Rectal Transducer + Oximeter pictureABB SSAC PRESSURE TRANSDUCER WLT12D/24D-4328
$97.34
ABB SSAC PRESSURE TRANSDUCER WLT12D/24D-4328  pictureABB ES2000-9792 CURRENT TRANSDUCER 000633 3BHL000633P0001 2000A 15-24V
$428.24
ABB ES2000-9792 CURRENT TRANSDUCER 000633 3BHL000633P0001 2000A 15-24V pictureBellofram T-1000 I/P Transducer 961-112-000 0-10VDC 3-120psi
$127.77
Bellofram T-1000 I/P Transducer 961-112-000 0-10VDC 3-120psi pictureMEDISON ULTRASOUND TRANSDUCER / Endocavitary 6.5 MHZ SonoAce
$450.0
MEDISON  ULTRASOUND TRANSDUCER / Endocavitary 6.5 MHZ SonoAce picture






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