BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-16-2011, 03:46 PM   #1 (permalink)
New Member
 
Join Date: Mar 2011
Model: Curve
PIN: N/A
Carrier: Sprint
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Create zoom function in browser

Please Login to Remove!

I'm trying to create a zoom function on the menu for the browser in my app but I can't get it to work.

MenuItem zoomin = new MenuItem("Zoom IN",1,0) {

public void run() {

invalidate();
BrowserField theBrowserfield = new BrowserField();
float currentZoom = theBrowserfield.getZoomScale();
float newZoom = currentZoom + currentZoom * (float) .25;
theBrowserfield.setZoomScale(newZoom);

}
};

Anyone have any ideas on how I can get it to actually zoom in on the screen?
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

Similar Threads for: Create zoom function in browser
Thread Thread Starter Forum Replies Last Post
WIFI connects,setting = hotspot browser,browser still tries to go to tmobile browser Billy_Gunn General 8900 Series Discussion - Javelin 3 05-15-2010 03:18 PM
Browser selecting incorrect browser... skyman84 General BlackBerry Discussion 3 11-19-2008 10:23 AM
Browser Question fmcgirt General 9000 Series Discussion - Bold 0 11-12-2008 06:14 PM
Opera Mini 4 web browser (with zoom) works on 7250 and 7290! Mark Rejhon General Legacy Device Discussion 5 01-08-2008 07:34 PM
Blackberry browser on Cingular mbn General BlackBerry Discussion 29 08-21-2005 01:15 PM





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