Display an image as a button

how to make an image like a button ; when we press the image it performs a command

Or you could use a form with an ImageItem with a button appearance:
Image myImage = ...
ImageItem("MyButton", myImage, Item.LAYOUT_CENTER, Item.BUTTON);and then add an ItemCommand to the ImageItem.
jc

Similar Messages

  • How to display an image as a button

    how to make an image like a button ; when we press the image it performs a command

    Or you could use a form with an ImageItem with a button appearance:
    Image myImage = ...
    ImageItem("MyButton", myImage, Item.LAYOUT_CENTER, Item.BUTTON);and then add an ItemCommand to the ImageItem.
    jc

  • Is it possible to display an image instead of button in a radio group?

    I am building an application to be operated with touch screens. I would like to display radio group buttons larger than they are by default. Is it possible to make them seem larger, or to display a custom image instead of the radio group?
    Francisco

    Rather than using a radio group, have you looked into using a list? That is what we use for navigation in APEX in many places when we show large images (like App Builder home page - Run Application, Supporting Objects, Shared Components, Utilities, Export / Import).
    If you need to use radio groups, you can use the template under Globalization to include a larger, clickable image (we do that for pages like selecting the type of page to create). An example template is:
    #DISPLAY_VALUE#<br /><a href="f?p=4000:4700:&SESSION.::::P259_CHOOSE_PAGE_TYPE,P4700_SELECT_REPORT_TYPE:FORM,FORM_ON_A_TABLE"><img src="#IMAGE_PREFIX#menu/wiz_form_140x90.gif" alt="#DISPLAY_VALUE#" class="htmldbGreenIcons" width="140" height="90" /></a>
    Hope it helps -
    -- Sharon

  • Displaying internal image on a push button

    Hi,
    I am running oracle forms 11.1.2.0.0.
    I create a push button and under object property make it an iconic yes
    and under iconic file name I have "java/oracle/forms/icons/save.gif"
    During run-time it displays a image but it is not of save, it is an image of badimage.gif
    Even if I change save.gif to print.gif it is same result.
    What am I missing?
    Thanks
    Munish

    Munish wrote:
    Hi,
    I am running oracle forms 11.1.2.0.0.
    I create a push button and under object property make it an iconic yes
    and under iconic file name I have "java/oracle/forms/icons/save.gif"
    During run-time it displays a image but it is not of save, it is an image of badimage.gif
    Even if I change save.gif to print.gif it is same result.
    What am I missing?
    Hi Munish
    Do you read {thread:id=2513867}

  • How do I display Canvas Graphic image (Not Iconic button) from jar file

    Hi all,
    I am currently using Forms 10g.
    I have gone through the tutorials on how to add Button Icons into Jar files for web enables forms .....so far so good
    This however does not explain what I actually want to do... since "graphic images are by nature embeded in the for rather than referenced ......so here goes ..
    I have a forms 10g application where all the individual form modules/canvases display a big banner (covering top 20% of the screen). This was done by importing the image straight unto the content canvases. As you know this now becomes a "graphic Image" now embeded(& not referenced by file name) on the canvas. Also bear in mind that this is actually different from an "Image Item" which is a block object.
    I dont know if this is possible, but what steps do i follow to make the image part of a jar file as opposed to my current situation. Please let me know if possible or not so I stop waisting development time looking for answers :)
    Another question is how do i make this jar file a library object so that we can vary the image as we wish
    NB: one other trick which i can think of is to create a giant push button across the screen to display the image and then stick it in a jar file !
    Cheers
    css_jay99

    I don't know about embedded images imported in from the builder, but there is a way to use READ_IMAGE_FILE into a BLOCK.IMAGE_ITEM where the images are all in a jar file stored on the OAS.
    Metalink Note:137397.1 explains it in details.
    Tony

  • Image button displaying single image

    Hi,
    I am getting multiple images from picture library and displaying in the Imagebutton to display.
    But Last image is getting displayed i.e. there are 3 images that i am getting from picture library.
    I am getting image 3 in the image button even though when i am assigning the value in the loop as below
    for(i=0;i<results.count;i++)
    ImageButton1.ImageUrl = SPContext.Current.Site.Url+"/"+"/"+item.Title.ToString()
    Please let me know if i am making any mistake.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    My requirement is 
    To get images from Picture library and to display those images in the form of Image buttons.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

  • How To Display an Image in a Display Image Page Item

    i have a pageitem textbox called SearchBox , a Button called Search and a Display Image called Image
    i to display and image upon inserting an ID into the searchbox. It work alright if i put a static ID in the BLOB Column returned by SQL statement in Display Image
    Note the facialimage of datatype BLOB
    Sample
    ===
    select facialimage
    from voter_v
    where voterid= 34343434;
    But when i do it with a bind variable like the pageItem SearchBox
    it doesnt on the click of the Button
    what can be the problem
    Sample
    ===
    select facialimage
    from voter_v
    where voterid= :P1_VOTERSEARCH;

    Hi,
    can you please setup an example on apex.oracle.com and let me know the login credentials for the workspace. I think that will be the easiest to sort this out.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to display an image in particular cell editor

    Hi All,
    I want to display an image as the background for the table cell.
    I searched in sdn and found the solution only for link to action.
    I have created a dynamic table and if i click on apply button one more row is getting added according to my requirement.
    I want to differentiate this row from rest.  So I need to display image for the last row in the table which is added newly. 
    Can anyone suggest the procedure for adding an image in a particular cell editor along with the table data?
    Hope I am clear with my requirement.
    Pls suggest.
    Regards,
    subashini

    Hi,
    IF iam not wrong then for some rows u need to show text data and for some rows u need to show image data.
    follow the following steps.
    1. In ur table add cell editor of type Image.
    2.Create a value node with one more than required attributes.
    3.Suppose if need to show only one column then i will create  
       value node with two attributes.One attribute will be for text
      data and one will for Image.
    4.now access ur table cell editor dynamically.For image type
      cell editor we need to play only with two properties source
    and alt.Bind this alt property of editor wid that attribute which u
    need use for text data and source wid that attribute which u
    need to use for image.
    5.  Now suppose I need to show text data then
    I will create one element of that value node.In case of Image
    type cell editor source property  is given prefrence over alt
    property.
    set attribute which is bound to alt to the actual text data
    i.e setText("Actual text data");
    and set attribute which is bound to source to some dummy
    image name
    i.e setImage("dummy.gif");
    add this to node.
    during execution as source property of editor is bound to
    Image attribute of node  which in turn is set to dummy value it
    wont find actual source and will set Image cell editor with
    watever is bound to alt property which in turn set with actual
    text value..
    6.  Now suppose I need to show Image data then
    I will create one element of that value node.In case of Image
    type cell editor source property  is given prefrence over alt
    property.
    set attribute which is bound to alt to blank value 
    i.e setText("");
    and set attribute which is bound to source to some Actual 
    image name
    i.e setImage("Image.gif");
    add this to node.
    during execution as source property of editor is bound to
    Image attribute of node which in turn is set to Actual image file
    it will  set Image cell editor with that image name  and wont look for alt property.
    Copy all ur images in src->mimes->components->ur package
    Regards
    Surender Dahiya

  • Can an Acrobat form have a field that allows you to select and display an image?

    Hello,
      I'm trying to streamline my most frequent job duty. I work for a box plant and I spend most of my day creating or updating Print Cards. These are letter sized pages that contain the job information along the top and an image of the package laid flat below. What I'm trying to do is make the Print Card a form that I can fill in, and have the final field ask me to select the image. I would then browse for my package design and drop it into the specified field.
      Is this possible? It seems like it should be. I'm fairly illustrator savvy, but I've yet to really get my hands on Acrobat (though I get more excited about it the more research I do).
      Eventually, I want to turn this single form into a full portfolio that would be linked pdf versions of every form we currently use. The info would then be uploaded and assessable by anyone on our team. I don't know how to do half of that, but I'm learning.   So I guess, expect to see me post on this for a while.
    -Jefferson

    Yes, you can set up a button that has a layout other than "Label only" and  use the following as the Mouse Up JavaScript for the button:
    // Mouse Up script for button
    event.target.buttonImportIcon();
    You will then be prompted to select a file as the source of the button icon. You can choose form a number of file types. You should then set the button to read-only before sending the PDF.
    To trigger the import from a different button, bookmark, link, etc., the script would be:
    getField("image_button").buttonImportIcon();
    Replace "image_button" with the actual name of the button that will display the image.

  • t:inputcalendar i want an image instead of button?

    Hi
    i am using tomhawak inputdate and inputcalendar in my appliation. i want to use an image insated of button.
    Please some one let me know how can we do that
    thansk in advnace
    sreedevi.

    Hi,
    i have tried the following tag image is displaying on the button.
    <t:inputCalendar id="dtTo" value="#{selectPlan.timeFrame.endingDate}" renderAsPopup="true" size="14" popupDateFormat="yyyy Week w" readonly="true" required="true" onclick="validateTimeFrameDate()" renderPopupButtonAsImage="true" popupButtonImageUrl="images/calendar.gif" />
    Thanks,
    N.Kishore

  • Problem Displaying an Image in a JScrollPane

    Hi All,
    I've placed a Toolbar at the bottom of a JFrame and above the toolbar I placed a JTabbedPane. In one of the tabs I want to display a full sized image.The size of the image that I want to display using a scroll pane is 595x842 pixels. Now the problem is that when I display the image in the scroll pane the bottom toolbar is overlapped with the scrollpane. I don't want to resize the image as it is spoiling the image quality.I used the below code
    JPanel imagepagepanel=new JPanel()
        protected void paintComponent(Graphics g)
              js=new JScrollPane();
              Point p = js.getViewport().getViewPosition();
              g.drawImage(demoicon.getImage(), p.x, p.y, null);
    mytabbedpane.addTab("View Image",js); //add the scrollpane to the tabI even tried using a label to display the image in the tabbedpane and I've got the same overlapping problem.
    I am able to embed the default browser in my application using JDIC API and the image display is fine in the browser without overlapping the bottom toolbar. But I don't want to use a web browser to display the image.
    It would be of great help if anyone could suggest a solution to the overlapping problem. I want the scroll pane to work similar to a web browser while displaying a large sized image.
    Thanks in advance.

    Override the paintComponent method to just draw the
    image at 0, 0, w, h.
    The rest is not needed, to say the least.Here's an easier way
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.awt.*;
    import java.io.File;
    import java.io.IOException;
    public class ImageInTabbedScrollTest extends JFrame {
        public ImageInTabbedScrollTest() {
            buildGUI();
        private void buildGUI() {
            JPanel mainPanel = (JPanel) getContentPane();
            mainPanel.setLayout(new BorderLayout());
            JTabbedPane tabbedPane = new JTabbedPane();
            try {
                Image image = ImageIO.read(new File("images/terrain.jpg"));
                ImageIcon icon = new ImageIcon(image);
                JLabel label = new JLabel(icon);
                JPanel panel = new JPanel(new GridLayout(0,1,5,5));
                panel.add(label);
                JScrollPane jsp = new JScrollPane(panel);
                tabbedPane.addTab("Image",jsp);
                JPanel anotherPanel = new JPanel();
                JLabel label2 = new JLabel("Second Panel");
                anotherPanel.add(label2);
                 label2.setFont(new Font("San Serif",Font.BOLD, 40));
                tabbedPane.add("Label",anotherPanel);
                mainPanel.add(tabbedPane, BorderLayout.CENTER);
                JToolBar tBar = new JToolBar();
                tBar.add(new Button("OK"));
                tBar.add(new Button("Maybe"));
                tBar.add(new Button("No"));
                mainPanel.add(tBar, BorderLayout.SOUTH);
                  } catch (IOException e) {
                e.printStackTrace();
        public static void main(String[] args) {
            Runnable runnable = new Runnable() {
                public void run() {
                    ImageInTabbedScrollTest testFrame = new ImageInTabbedScrollTest();
                    testFrame.setSize(new Dimension(600,600));
                    testFrame.setLocationRelativeTo(null);
                    testFrame.setDefaultCloseOperation(EXIT_ON_CLOSE);
                    testFrame.setVisible(true);
            SwingUtilities.invokeLater(runnable);
    }

  • Preview doesn't display bmp image

    Using Bootcamp, I saved a BMP image file of a windows screenshot. I can view the screenshot with Tiger & Preview properly, but when I open the file with Leopard & Preview, the entire image is blank except for the windows image resize buttons in the top right corner.
    Using Leopard and Quicktime, I can view the image. Also I can display the image properly using Microsoft Word on Leopard. I cannot see the image when I insert it into Pages on Leopard.
    Why is the BMP file viewable with only certain applications? Does Preview, under Leopard, no longer support BMP files?

    I tried using the link you provided to report the problem to Apple, but it wouldn't log me in. Do you have to be a developer to use Bug Report? If so, perhaps a developer could confirm this as a problem, and report it.
    I posted the offending BMP file to my iDisk account: http://idisk.mac.com/rush1-Public
    Problem: On a Leopard system the BMP is not displayed properly using Preview or Pages, but it is viewable using QuickTime or MSWord.

  • How to display an image??

    Hello to all,
    I'm not a newbie on Forms development, but... I don't remember how to do the following! :
    - I have a form (.fmb and .fmx in d:\app\) with only one datablock and 2 text items and two buttons inside that datablock. I want to display an image which is in d:\app\ too.
    I created an image item on the form and Forms places automatically in the block. I go to thr properties page and.. I don't see where to put the path (d:\app)
    Apart from this.. Why the Forms put the image item insede the block.. ? I remember other forms I've done where the image item was inside the Canvas tree...
    Could you help me please? I suppose it's a very easy question...
    but... :( my poor memory.... is not working today
    Thanks a lot.
    Jose.

    Hi jose,
    I am also not new to Oracle forms but i am new to use image on the canvas
    the one u said file--> import is not found on my application bulder
    mine app builder is 10g forms
    please let me know the detailed process how to manage with pictures
    first of all how to paste a image on the canvas
    i dont want any thing related database
    its just a picture on the database
    thank U jose

  • Automatically display remote images from trusted senders?

    To help control spam, I have Mail set to not display remote images. However, I get a couple daily emails that are from trusted senders and clicking on the "Display Images" button for these gets old pretty quickly. Is there a way I can get Mail to automatically display the remote images from these trusted senders without turning on the display of remote images for all senders? In case it matters, these senders are not in my Address Book and I would prefer not to add them for reasons too involved to explain here. Although if that is the only way to accomplish what I want, I'll do it.

    there is no option to do that. you can request that this feature be added here:
    http://www.apple.com/feedback/macosx.html

  • "File Link" - Images - displaying landscape image as portrait image

    I am trying to link a image by using file link button. I have a image of size, width 10' and height 6'. When i link this image in reports, it doesn't come up in these coordinates. It is displaying as 6x6 size image. I have tried to link other images also. Report doesn't display linked images in their actual size, even if i change the size of rectangle in reports for these linked files.
    Any idea how to fix this in report?
    Thanks

    I have figured it out. In paper layout mode it doesn't display right size. But in paper design mode it is showing full image.

Maybe you are looking for