Note that there are some explanatory texts on larger screens.

plurals
  1. POBlackBerry:Disable vertical scrolling
    primarykey
    data
    text
    <p>In BlackBerry i have developed a screen which display a image of size 480 X 360 in background.My BB screen is of size 480 X 360.As the image is bit big in size when i scroll vertically the screen gets scrolled and disturbs my screen.I want to lock the scrolling such that i will not be able to do vertical scrolling. May be i am asking a very easy question but i really dont have time to google as of now.Please help me to do this</p> <p>My code is as follows:</p> <pre><code>public LaunchXtcMsngrScreen() { int intwidth = Display.getWidth(); int intheight = Display.getHeight(); //getting the height/width of BB screen Debugger.debug(UrlInfo.workflow_File,"Screen Height ="+intheight); Debugger.debug(UrlInfo.workflow_File,"Screen Width ="+intwidth); BMbackground = Bitmap.getBitmapResource("xtclogo.jpg"); VerticalFieldManager VFM = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.USE_ALL_HEIGHT | VerticalFieldManager.NO_VERTICAL_SCROLL | VerticalFieldManager.NO_VERTICAL_SCROLLBAR) { //Override the paint method to draw the background image. public void paint(Graphics graphics) { //Draw the XTC Messenger logo graphics.drawBitmap(0, 0,Display.getWidth(),Display.getHeight(),BMbackground, 0, 0); super.paint(graphics); } }; Bitmap registerbitmap = Bitmap.getBitmapResource("register_button.PNG"); BFregister = new ImageButtonField(registerbitmap); BFregister.setMargin(245,0,0,190);//vertical pos,0,0,horizontal pos VFM.add(BFregister); add(VFM); } </code></pre> <p>Regards, Yogesh Chaudhari</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload