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 11:23 AM
Browser Question fmcgirt General 9000 Series Discussion - Bold 0 11-12-2008 07:14 PM
Opera Mini 4 web browser (with zoom) works on 7250 and 7290! Mark Rejhon General Legacy Device Discussion 5 01-08-2008 08:34 PM
Blackberry browser on Cingular mbn General BlackBerry Discussion 29 08-21-2005 01:15 PM

2Pcs Amplifier Module Hxj8002 Mini Audio Amplifier Module New Ic O
$2.49
2Pcs Amplifier Module Hxj8002 Mini Audio Amplifier Module New Ic O picture5Pcs Amplifier Board Module Dual D Class Channel 2X10w Hi-Fi Pam8610 Audio K
$15.74
5Pcs Amplifier Board Module Dual D Class Channel 2X10w Hi-Fi Pam8610 Audio K pictureHP Agilent 8447F OPT Option H64 M23 Wide Band Preamplifier Amplifier Module
$400.0
HP Agilent 8447F OPT Option H64 M23  Wide Band Preamplifier Amplifier Module  pictureAvago MSA-0686 amplifiers Lot of 100
$100.0
Avago MSA-0686 amplifiers Lot of 100 picture10Pcs Tl082 Tl082cdt So8 Op-Amp Jfet Op Amplifier Dual Opv 082C Ic New M
$1.19
10Pcs Tl082 Tl082cdt So8 Op-Amp Jfet Op Amplifier Dual Opv 082C Ic New M picture






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