Menu Commands for Images

When loading an image from a WAP page, Symbian OS phones give zoom in/out options. I'd like to add these options to a J2ME app accessing the same images. Is there are way to add these menu options to my app?
Thanks.

I'm having trouble calling this in the appropriate screen. Here's the code I'm trying to augment...is this even close to where I should call this ScaleImage class? I'm really not sure if this should be called as a "cmd" item or not. I'm really not Java proficient, so any help will be greatly appreciated.
------------->
import javax.microedition.io.HttpConnection;
import javax.microedition.lcdui.*;
public class VidCapScreen extends Canvas implements CommandListener, HttpListener {
private Image image;
private Command cmdCancel;
private HttpWorker worker;
private int current;
private int total;
private boolean auth = false;
public VidCapScreen() {
cmdCancel = new Command("Cancel", Command.CANCEL, 1);
addCommand(cmdCancel);
setCommandListener(this);
public void go() {
repaint();
image = null;
worker = null;
current = 0;
total = 0;
worker = new HttpWorker(this);
doGet();
private void doGet() {
worker.doGet(Main.URL + "/", Main.instance.userName, Main.instance.password);
public void paint(Graphics graphics) {
graphics.setColor(0xFF, 0xFF, 0xFF);
graphics.fillRect(0, 0, getWidth(), getHeight());
Font font = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);
graphics.setFont(font);
if (auth) {
if (image == null) {
graphics.setColor(0x0, 0x0, 0x0);
graphics.drawString("Retrieving initial image...", getWidth() / 2, getHeight() / 2, Graphics.HCENTER | Graphics.BASELINE);
} else {
graphics.drawImage(image, getWidth() / 2, 2, Graphics.HCENTER | Graphics.TOP);
} else {
graphics.setColor(0x0, 0x0, 0x0);
graphics.drawString("Retrieving IP...", getWidth() / 2, getHeight() / 2, Graphics.HCENTER | Graphics.BASELINE);
if (current != 0 && total != 0) {
graphics.setColor(0x0, 0xFF, 0x0);
graphics.fillRect(2, getHeight() - 8, 100, 4);
graphics.setColor(0xFF, 0x0, 0x0);
graphics.fillRect(2, getHeight() - 8, (100 * current) / total, 4);
public void commandAction(Command c, Displayable d) {
if (c == cmdCancel) {
worker.cancel();
// worker = null;
Main.instance.showSelectRoomList();
public void listenerBadResponseCode(int rc) {
Alert alert;
if (rc == HttpConnection.HTTP_UNAUTHORIZED) {
alert = new Alert("Error", "Access Denied: Re-enter logon details", null, AlertType.ERROR);
} else {
alert = new Alert("Error", "Bad HTTP response code: " + rc, null, AlertType.ERROR);
alert.setTimeout(Alert.FOREVER);
Main.instance.showAlertThenLogonScreen(alert);
public void listenerError(String message) {
Alert alert = new Alert("Error", "HTTP error: " + message, null, AlertType.ERROR);
alert.setTimeout(Alert.FOREVER);
Main.instance.showAlertThenLogonScreen(alert);
public void listenerResponse(Image i) {
image = i;
current = 0;
total = 0;
repaint();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// just skip it
doGet();
public void listenerProgress(int current, int total) {
this.current = current;
if (total == -1) {
this.total = 50000;
while (this.current > this.total) {
this.current -= this.total;
} else {
this.total = total;
repaint();
public void cancel() {
if (worker != null) {
worker.cancel();
worker = null;
public void ipRetrieved(String ip) {
auth = true;
repaint();
doGet();
-------------------------->

Similar Messages

  • Menu commands for Scheduling Gantt

    I'm trying to add my own custom commands to a Scheduling Gantt on my page. I have some questions/comments.
    1. I can add items to the tablePopupMenu facet, and they show up fine and my listener gets executed. How can I find out what resource was selected when this event fires, and/or the IDs of all of the selected resources? The actionEvent has very little information in it and is just generic. Do I need to tell it somehow that it is a "resource" event?
    2. I have added items to the chartPopupMenu facet, and they show up fine on the menu, but the listener is not called when I click the menu item. This seems like a bug but maybe I'm just doing something wrong.
    3. I would have thought that whatever menu items I add to these popup menus would also be added to the "Resource" and "Task" menus on the menu bar, but they're not. How can I add my own menu commands there?
    4. Is it possible for me to change the text that displays for the "Resource", "Task" and "View" menus? We have a legacy language translation system that I need to use to get the menu choices.
    Any and all advice appreciated!
    Christine

    I'm trying to add my own custom commands to a Scheduling Gantt on my page. I have some questions/comments.
    1. I can add items to the tablePopupMenu facet, and they show up fine and my listener gets executed. How can I find out what resource was selected when this event fires, and/or the IDs of all of the selected resources? The actionEvent has very little information in it and is just generic. Do I need to tell it somehow that it is a "resource" event?
    2. I have added items to the chartPopupMenu facet, and they show up fine on the menu, but the listener is not called when I click the menu item. This seems like a bug but maybe I'm just doing something wrong.
    3. I would have thought that whatever menu items I add to these popup menus would also be added to the "Resource" and "Task" menus on the menu bar, but they're not. How can I add my own menu commands there?
    4. Is it possible for me to change the text that displays for the "Resource", "Task" and "View" menus? We have a legacy language translation system that I need to use to get the menu choices.
    Any and all advice appreciated!
    Christine

  • Command for Images in the WAD 2004s

    Hi
    I have notived that in 2004s that the new Button Group web Item allows the user to assign commands. eg: Bookmark.   It does however not allow the user to assign an image instead of a Button.
    It is also possible to insert an image however I have not been able to assign a command to an image.  One of the configurable attributes of the Image is "onclick"
    I was wondering if it is possible to assign a command to this attribute?
    I have tried unsuccessfully to generate the code for bookmarking using the "script" menu item and then assigned this javascript to the image "onclick" attribute however this has not worked.
    If anyone has used this functionality I would appreciate your input.
    The following code is generated from the script meu item for Bookmark.
    function Bookmark(currentState, defaultCommandSequence)
         var commandSequence = new sapbi_CommandSequence();
         //Create a new object of type sapbi_Command with the command named "EXPORT"
         var commandEXPORT_1 = new sapbi_Command( "EXPORT" );
         //End command commandEXPORT_1
         //Add the command to the sequence
         commandSequence.addCommand( commandEXPORT_1 );
         //Create a new object of type sapbi_Command with the command named "SAVE_BOOKMARK"
         var commandSAVE_BOOKMARK_2 = new sapbi_Command( "SAVE_BOOKMARK" );
         //End command commandSAVE_BOOKMARK_2
         //Add the command to the sequence
         commandSequence.addCommand( commandSAVE_BOOKMARK_2 );
         //Send the command sequence to the server
        return sapbi_page.sendCommand( commandSequence );

    Hi Ian,
    please tell us why you marked this question as answered. If found a way to do what you wanted to do, please post it, as it may help others who have the same question. Like me, for example, I want an image to show a popup window similar to the one shown when you create a button group and assign one of the buttons the command "OPEN_VARIABLE_DIALOG". This should happen when you click on the image.

  • What is the Mac key command for 'send link' in the File Menu?

    Is there a Mac key command for the 'send link' under the File Menu? I use this a lot and like to use key commands.
    Thanks, Connie

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • Searching for images by size?

    Hey all,
    I'd like to scour a particular folder on my hard drive for images of a certain size (in either pixel dimensions or file size). Is there a way to do this?
    Thanks!
    Alec

    Depending upon the scope of your needs you could simply open the specific folder that has the images, set view mode to List and click on the Size column to display in size-sorted order. Click again on the Size column to change from ascending to descending or vice-versa.
    You can do a Spotlight search in the Finder by navigating to the folder then press COMMAND-F to open a Spotlight search. Select the folder from the Search bar. Select the Kind of file (image) then click on the "+" button, select Size from the first drop down menu then set your size parameter in the second drop down menu. If you wish to be able to recall the results you can save the search results.

  • After updating to Firefox 7.0.1, menu bar for Google,yahoo, Facebook (message,notification,profile,home) and others site are disabled. How can solve this problem?

    after updating to Firefox 7.0.1, menu bar for Google(web ,image,video,map etc),yahoo, Facebook (message,notification,profile,home) and others site are disabled. even I cant log out from different sites cz the log out bar is completely disabled. I tried with Firefox 4;5 and 6, same problem exist . I tried by active all add ons for facebook, same problem exist. If I use internet explorer , I don't find such problem with it.
    How can I solve this problem?

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • Creating a dropdown menu from an image hotspot

    How do you create a dropdown menu from an image hotspot? For
    example, this website is a single jpg image with links generated
    from hotspot coordinates on the image. Can I have someone click on
    a hotspot and a dropdown menu appears?
    Thanks in advance for the help!

    Unfortunately, everyone knows, but nobody wanted to tell you.
    Given this fact -
    > this website is a single jpg image with links generated
    from hotspot
    > coordinates on the image.
    one can assume that you are not very experienced with DW or
    even with HTML.
    In that case, the practical answer to your question would be
    "no".
    To create a 'drop-down' menu, you need to have a full web
    page (not just an
    image with image maps), containing a menu HTML structural
    element. While
    you *could* just place hidden elements on the page that would
    only be
    revealed (i.e., drop-down) when your image maps are rolled
    over, the
    practical reality is that this would be an extremely awkward
    construct, and
    not only most likely beyond the ken of someone who is
    inexperienced, but
    also just plain 'not right'.
    Sorry to give you the bad news.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "dimplechin" <[email protected]> wrote in
    message
    news:g0kdnk$cn1$[email protected]..
    > No one knows?

  • How to show active page in Spry Menu Bar using images

    Hi,
    I have already read this answer "how to show active page in spry menu bar" but I am using images, not text.  I have mouse-over and mouse-out working in the Spry Menu Bar using image.png and image-over.png, but I cant' figure out how to get the image-over.png to appear on the active page since the spry menu bar is locked on the individual pages.  (I tried to put it in an editable comment, but spry wouldn't go for it. :-)
    Any ideas.  Here is the code:
    <ul id="MenuBar1" class="MenuBarHorizontal">
           <li><a href="../index.html" id="home" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','../images/all_pages/home-over.png',1 )"><img src="../images/all_pages/home.png" alt="Home Page" name="home" width="58" height="20" border="0" id="Image8" /></a></li>
           <li><a href="../show.html" id="show" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('show','','../images/all_pages/show-over.png',1)"><img src="../images/all_pages/show.png" alt="The Show" name="show" width="101" height="20" border="0" id="show" /></a></li>
            <li><a href="../team.html" id="team" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('team','','../images/all_pages/team-over.png',1)"><img src="../images/all_pages/team.png" alt="The Team" name="team" width="97" height="20" border="0" id="team" /></a></li>
            <li><a href="../company.html" id="company" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('company','','../images/all_pages/company-over.png',1)"><img src="../images/all_pages/company.png" alt="The Company" name="company" width="139" height="25" border="0" id="company" /></a></li>
            <li><a href="../beatles-tickets.html" id="tickets" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('tickets','','../images/all_pages/tickets-over.png',1)"><img src="../images/all_pages/tickets.png" alt="Tickets" name="tickets" width="75" height="20" border="0" id="tickets" /></a></li>
            <li><a href="../media.html" id="media" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('media','','../images/all_pages/media-over.png',1)"><img src="../images/all_pages/media.png" alt="Media" name="media" width="61" height="20" border="0" id="media" /></a></li>
            <li><a href="../news-reviews.html" id="news" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('news_reviews','','../images/all_pages/news_reviews-over.png',1 )"><img src="../images/all_pages/news_reviews.png" alt="News-Reviews" name="news_reviews" width="149" height="20" border="0" id="news_reviews" /></a></li>
            <li class="MenuBarHorizontal"><a href="../contact.html" id="contact" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','../images/all_pages/contact-over.png',1)"><img src="../images/all_pages/contact.png" alt="Contact Us" name="contact" width="79" height="20" border="0" id="contact" /></a></li>
         </ul>
    Thanks so much for helping!
    Cheers,
    Janell

    Just found this page:
    Persistent Page Indicator
    Update: Drat, it is for text menus only not using images. :-(
    Cheers,
    Susan

  • Is there a substitute tool path for "Image Adjustments Variations-" in Photoshop CS6 Standard Addition?

    Is there a substitute tool path for "Image>Adjustments>Variations…" in Photoshop CS6 Standard Addition that brings similar results?  I was used to using Image>Adjustments>Variations… in Photoshop CS4 Standard Standard Addition quite often. I upgraded to Photoshop CS6 Standard Addition to get the 64bit memory architecture compatibility on my Macbook Pro, booted in Mountain Lion.  I see now that Photoshop CS6 Standard Addition has the "Image>Adjustments>Variations…" tool path removed.
    I don't have Photoshop CS6 Extended, which has the all new Image>Adjustments>Variations… tool path.  I only have Photoshop CS6 Standard Addition so, if anyone can share with me a substitute tool set that can give me similar results to using the old "Image>Adjustments>Variations…,"  I would appreciate it.

    Thanks, R_Kelly.
    You helped me to start exploring other tools in the Image>Adjustments Menu.  "Image>Adjustments>Color Balance…" seemed to help me get the results that "Image>Adjustments>Variations…" used to deliver.  "Image>Adjustments>Photo Filter>Warming Filter (85)" also got me to where I wanted to be in desired adjustments.  I used to get the results I wanted in brightness, contrast, mid-tone adjustment, and color balance buy using just Curves, Variations, and Hue/Saturation.  Now I'll use "Color Balance…" and "Photo Filter>Warming Filter (85)" along with Curves, and Hue/Saturation.  I also have learned to use "Levels" some more to get the same effect as Adjustments>Variations…"  I always thought there were more technically precise adjustment tools to get the same effect as "Image>Adjustments>Variations…"  Adobe dropping Variations in Photoshop CS6 Mac version forced me to learn better image adjustment approaches for pre press color correction and image warming.  I feel confident now to make Photoshop CS6 my prime-time work tool and move the Photoshop CS4 launch icon off of my Mac OS app Dock.  Thanks again, R_Kelly.

  • How to make an app a file receiver for images on iOS?

    Hi,
    How to make an app a file receiver for images on iOS?
    I did it for the Android app.xml like this:
    <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="text/plain"/>
        <data android:mimeType="image/jpg"/>
        <data android:mimeType="image/jpeg"/>
        <data android:mimeType="image/png"/>
        <data android:mimeType="image/gif"/>
    </intent-filter>
    How to do it for iOS?
    (I'm using Adobe Air 4.0)
    Thank you!

    What app have you used to create your ibook?  Normally any app will have a menu item like File > Export that will give you the option of PDF, or you can use Print and there will be an option in the Print dialogue to Print to PDF.

  • [svn:bz-trunk] 21277: Added ds-console source to package-oem and removed copy command for datavisualization .swc which doesn't exist in the specified location.

    Revision: 21277
    Revision: 21277
    Author:   [email protected]
    Date:     2011-05-18 11:35:28 -0700 (Wed, 18 May 2011)
    Log Message:
    Added ds-console source to package-oem and removed copy command for datavisualization.swc which doesn't exist in the specified location. I do not find it in the most recent package-oem.zip neither
    Modified Paths:
        blazeds/trunk/build.xml

    Gusar wrote:No, it's not. I have actually seen cases where software rendering gave a higher glxgears score than hardware rendering (and no, it wasn't about vsync). Of course, with *actual* apps on the same machine, software rendering sucked compared to hardware rendering.
    Please do not jump to conclusions and make assumptions here like 'when will people finally get it??'.  I never said it was a benchmark.  I have also seen many examples of where it's results do not go with conventional performance.  I have a Radeon 9000 that goes faster on glxgears than a Geforce FX 5600 running Nouveau.  Which is the faster card?  The FX by miles.  It is not a benchmark as it can not be compared between configurations.  What I know is that on this individual system, from prior experience over many years when 3D acceleration is working glxgears gets between 300 and 400 fps.  When it is not working it gets less than 10.  That is a fact but does not mean it is benchmarkable.  Yes, a Quake 3 timedemo (I have these numbers too and they very much correlate to glxgears performance for this system given just how slow it is) would be a benchmark but when it runs less than 0.1fps and even the 2D rendering means that navigating the menu is impossible, there just isn't the time to find out.  Hence if playing around with drivers on this system I would use glxgears to check that 3D acceleration is working but not to benchmark.  Glxinfo does not give you all this evidence.
    But to clarify, I wouldn't use glxgears as a benchmark, benchmarking is different and I do a lot of that too.

  • Spry widget menu bar background image help

    Does anyone know of a good tutorial for putting a background image behind the whole menu bar, not just each button, and a tutorial for putting images behind each button.
    Also, does anyone have a good tutorial on creating some sort of gallery, with thumbnails, in dreamweaver.
    Thank you, using cs4

    You can start here for your spry menu.
    http://livedocs.adobe.com/en_US/Spry/SDG/index.html
    You can also use a background image in the container that you have your SM in. You can use in in conjuction with, or in place of images for the menu.
    For the gallery, I would look at third party products.
    gary

  • No Image - Pull Down Menu List with Image

    HI.
    i am using Pull Down Menu List with Image (Custom 1). but when i run the application i can't see any image. below is the link to my application
    [http://apex.oracle.com/pls/otn/f?p=49167:1|http://apex.oracle.com/pls/otn/f?p=49167:1]
    Sagar

    Hello Sagar,
    If you change the template for the list to 'Pulldown menu with image' the images show up.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • Sleep and Shut-down menu commands

    Our 500 MHz Power PC G3, upgraded to system 10.4.6, is a great machine and a real work horse for us. However, it has been acting up lately. The apple symbol drop down menu command that puts the computer to sleep, restart, shut down etc. will not respond. The key board commands for sleep etc. also don't work. I tried the Disk Utilitly- First Aid, both Disk Repairs and Permissions. "No repairs were necessary" for both. I even reinstalled OS 10.4.6 which seems to have complicated the problem and ate a big chunk of our precious little harddrive memory. Now every time I start up I get the warning message, "Application Launch Failure" The applicaton "Transport Monitor' could not be launched
    because of a shared library error:"8<Transport Monitor><Transport Monitor><HotSyncLib.PPC><"
    Could this be the root of the drop-down menu problem?

    As I said, a weak or dead PRAM battery can reportedly cause odd startup issues. If it has never been changed in six years, that's a really long-lasting battery, even if the iMac was kept on continuously.
    They are pretty cheap from the right source, so you may want to try changing it.
    http://eshop.macsales.com/item-specials/Newer%20Technology/BAA36VPRAM/

  • Reader XI still gives "insufficient data for image" error

    Our fax machine creates .pdf files of the faxes and recently our back office has had trouble printing them. When I look at them they give an "insufficient data for image" error, but only on one page each. I've tried upgrading to reader XI but the problem persists. I've gotten around it by taking a screenshot and printing the one page that doesn't work so far, but I'd like to get this fixed. It only started happening today. I have a call in to our fax provider, but I was wondering if anyone here had any possible solutions.
    Thanks,
    Also due to the nature of the documents I'm unable to provide a sample.
    Message was edited by: riderryuken

    It is also happening to me (running v 11.0.2).  I tried adjusting the various settings under the "View" menu and at best could only see part of what was missing.  I resolved the issue by downloading and installing Foxit Reader.  Bingo! now I can see the entire document.

Maybe you are looking for