How to display images for right click menu items

I am trying to display some image to the left of my right click menu items.I have searched the help but did't find anything wich can add an image to the menu items. If anyone knows how to do it, Please share 
Thank to all.
If you are young work to Learn, not to earn.

Hi Mr,
you should have searched the topic 'Programming with Menu Bars'
Use the ATTR_SHOW_IMAGES attribute to add a column in the menu in which images can be placed. Then use the ATTR_ITEM_BITMAP attribute to specify an image to use for a submenu or menu item

Similar Messages

  • How to display a seperate right click menu for each item of a tree control?

    Hi I want to display a specific right click menu when a particular tree item is selected. I know how to create a menu and how to display it. I am using the function GetLabelFromIndex() to get the active tree item and then compare the label and based on the result display a manu for that item. Now my problem is that when I use the above function in the EVENT_RIGHT_CLICK it gives me the error "the Index passed is out of range" while using the same function with the same arguments in EVENT_SELECTION_CHANGE it gives no error...below is the part of my code
    case EVENT_RIGHT_CLICK:
    GetLabelFromIndex(panelHandle, PANEL_TREE, eventData2, label1);
    //The function gives the stated error here
    if(eventData1)//after it I compare the result and display the menu
    case EVENT_SELECTION_CHANGE:
    GetLabelFromIndex (panelHandle, PANEL_TREE, eventData2, label1);
    //The function works fine here
    if (eventData1)
     If any one have any idea whats going on or alternate way of doing this Please share knowledge...Thanks
    If you are young work to Learn, not to earn.

    Hi,
    one possible approach of solving this problem is looking closer at the error message: The error "the Index passed is out of range" tells you that something is wrong with the index, either it is too small or too large So why don't you set a breakpoint and check the index value, it might be useful information...
    The other hint is to check the meaning of eventdata2 (using the help): It is different for different events! For the event_right_click it gives the horizontal mouse position, not the index as event_selection_change does...

  • How can I modify the "right click" menu of a table control?

    Hello,
      How can I modify the "right click menu" of a table control. I would like to be able to remove the ability to add or delete columns and maybe other selections. I want to keep the ability to
    add or delete rows

    Hi Andy,
    Dialog & User Interface VIs -> Menu functions
    Never used them, eh?

  • How to display Tcodes infront of each menu item on bw screen ?

    Hi,  Can you please tell me the way how to display Tcodes infront of each menu item on bw screen.
    Like modelling Rsa1
    I know this is possible as i have seen it myself and i tried a lot to find. Plz help.
    Prashant singhal

    Hi,
    In Bottom of your screen tab, click small icon and choose "Transaction".
    you can see all transaction codes while you navigate to any screen.
    hope it helps
    Regards,
    Arun.M.D

  • How to get rid of right click menu?

    I like to mouse over a hyperlink in a web page and select "open in a new tab". The right click menu jumps in the way. I don't like or use the right click menu. How do I stop it from stopping me? As a side note, the reason I like "open in a new tab" is that some websites will open on the same page and in some events the back button will not return you to that page. I find the new tab very helpful and the right click menu a pain in the ---.
    Win 8.1
    Firefox - newest
    Alternatively, is there a way to add "open in a new tab" to the menu that gets in the way?
    I was trying to open "Sign Up/Sign In" in a new tab.
    Completely irrelevant to my question, but since you see my tabs, I was watching Jon Stewart on Hulu. He was raving about the Katy Perry Superbowl show. I wanted to see what he was talking about. I don't give a flying crap in the rain about the Stupor Bowl.

    The right-click menu is context-sensitive. When you right-click a link, you should have the option to open in a new tab, new window, or new private window. (In a private window, "new window" is not displayed.) The menu in your screen shot would normally appear if you clicked a blank area of the page without a link directly under the mouse pointer.
    I can't think of any built-in way to get the Open in New Tab command just mousing over a hyperlink. Do you have an add-on that does that automatically for you? If so, I wonder whether it might need an update?

  • Removing right-click menu items

    When I highlight a group of text in a web page and right click the text, There are 4 options in the menu for converting the text to PDF.
    How do I remove these options from the menu?

    Why doesn't adobe have an option within settings to remove shell/context/menu items?
    For those who don't want the extra crap cluttering up their menus...
    In winXP
    -(with IE closed), click 'start', 'control panel', 'internet options'.
    -Click on the 'programs' tab.
    -click 'manage ad-ons'
    -Find the Browser Helper Object called 'AcroIEToolbarHelper Class',
    --highlight it and click 'disable'.
    -Click 'ok' to close the manage ad-ons window, click 'ok' to close the internet options window.
    You still need to remove the items from the right-click menu.
    (*everyone puts a disclaimer so here goes. If you are scared to edit the registry...don't. Create a restore point, don't touch any other entries except the ones listed.)
    -click 'start', 'run', type 'regedit', click 'ok'
    -go to this entry "[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]"
    -delete the 8 Adobe 'convert....' entries. (or just the ones you want gone).
    (You can export them if you want, just highlight, right-click, export, and save them somewhere, but it's not necessary. If you want them back just go to 'internet options' in 'control panel' and 'enable' the Browser Helper Object again. If you re-enable it, the next time you start IE the registry entries and right-click items are replaced.)

  • How to add a new right-click menu entry in Nautilus file browser?

    I want to add a couple of new context menu entries to Nautilus File Browser.
    So when I e.g. right-click in View Pane on a file "foobar.conf" an menu entry "edit with gedit" should appear (among the other default entries).
    When clicked the file "foobar.conf" should be passed to gedit (and gedit editor opened).
    How can I achieve this?
    Under Ubuntu there are nautilus-actions but when I try to install them in Solaris with
    pkg install nautilus-actions
    then this package is not found.
    How else can I create my own context menues?
    I would appreciate to have one script with all my context menus, which when run add them all in one step.

    To manage selected files or directories, you can use specific Nautilus variables like NAUTILUS_SCRIPT_SELECTED_FILE_PATHS.
    For more details and which variables exist, please read the content of the following URL :
    Nautilus File Manager Scripts: Questions and Answers

  • How to display image for every article in smartforms

    DEAR GURUS ,
    i want to display material
    (mara-matnr) as well as its image for every material in a smartform .how will i code for this and where will i store my image .
    full points will be awarded for the solution . plz send any sample code .
    THANKS ,
    AMIT RANJAN .

    hi,
    upload logos using se78 transaction.
    then create a window in ur smartform and insert that graphic.
    for sample codes check these examples.
    SF_EXAMPLE_01
    SF_EXAMPLE_02.

  • Create Shortcut for Right-Click Menu

    I know you can create shorcuts from System Pref. - Keyboard - Keyboard shortcuts.
    But this only works with commands that are on the menu bar, but not with menu that only appears when you click the right button of the mouse (or two finger tapping on trackpad)
    I'd like to know if there is any way to make a shortcut (like apple + D or sth) for the mouse menu. I suppose Automator can give us some way to work it out?
    Thanks

  • Why were the new tab and new window right click menu items reversed from FF3.6 on FF4?

    I've been using Firefox since before version 1. when you right click on a hyperlink the first menu item had always been "open in new tab" and the second item was "open in new window" Now in Firefox 4, they have been reversed and it is a major pain in the rear. I even went and checked Firefox 3.6 on other PCs to make sure I wasn't wrong, and sure enough, they are reversed. I have verified this on both Windows XP and 7. I find my self constantly opening new windows instead of tabs. Is there a way to change this besides going back to ver. 3.6? Dumbest idea anyone at Mozilla ever had. Please change it back to the old way in 4.1

    Thanks edmeister with that add on I was able to change it. I still feel it was a bad idea to change it in the first place. I don't like the tabs up on top by default versus being in the old location either, but I did find how to fix that.
    I want Firefox to look and function like Firefox not chrome or opera. If I wanted chrome or opera I'd install it. I tried both and didn't like the interface of either one of those. You listening Mozilla?

  • How can I add custom right-click-menu to column headers in JTable?

    Can anyone point me to a topic on how to customize a popup menu for column headers in JTable? Specifically, I want to add things like "auto-size column" and "hide column".
    Thanks,
    Matt

    Right-click on your table.  Then go to Advanced->Runtime Shortcut Menu->Edit.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to display image when we click the mouse.

    Hi i am new java programming . And i need your help to slove my problem.
    I am asked to write a program which displays 2 images in a window.And when i click any one them ,that image should be displayed in a new window in full screen.Any kind of help is appreciated.Thanks in advance.

    We'd be glad to help, but first our prerequisites are that you post your current code and ask a very specific question concerning this code. These questions are answerable while "And i need your help to slove my problem." aren't. They're too overly broad to pin down.
    Much luck!

  • How did "inspect element" get on my right click menu?

    I did install several addons when this appeared. Anyone know from where this right click menu item came? My search suggested "firebug" - whatever that is. This is not on my XP but it is on my Vista and both have the same addons.
    Thanks

    "Inspect Element" is a new item that is added in Firefox 10.<br />
    Previous Firefox version do not have the build-in inspector.
    *http://www.mozilla.org/en-US/firefox/10.0/releasenotes/
    <blockquote>Inspect tool with content highlighting, includes new CSS Style Inspector</blockquote>
    You can hide that context menu entry by setting the <b>devtools.inspector.enabled</b> pref to false on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • How to display right-click menu for JPanel?

    Hi...
    I am developing an application to display a JWindow in the screen along with a TrayIcon in the system-tray area. There should be a right-click menu in both the tray icon and JWindow for further options.
    I am able to create a JPopupMenu for tray icon. On right-clicking on the tray icon, the menu is being displayed. But not able to do the same for the JWindow. I am able to capture the right-click mouse event, but not able to display the menu.
    This is how I am displaying the menu for the tray icon
    PopupMenu  popupmenu = new PopupMenu();
    MenuItem  menuitem1 = new MenuItem("Exit");
    menuitem1.addActionListener(new ActionListener()
        public void actionPerformed(ActionEvent exx)
            System.exit(0);
    popupmenu.add(menuitem1);
    trayicon = new TrayIcon(Toolkit.getDefaultToolkit().getImage("./images/Icon.gif"),"Right-click for more options",popupmenu);For displaying the menu in the JPanel, I am using the following snippet...
        public class MyMouseListener extends MouseAdapter
            public class MyMouseListener() {}
            @Override
            public void mouseClicked(MouseEvent e)
                if (e.getButton() == MouseEvent.BUTTON3)
                   System.out.println("Clicked");
                   jp.setComponentPopupMenu(popupmenu);
        }Can anyone please help me to do this??
    Thanks in Advance...

    Hi,
    PFA the code I am using...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DisplayStrip extends JWindow implements MouseListener, MouseMotionListener
         Point location;
         MouseEvent pressed;
        JPanel jp ;
        JLabel jl ;
        JPopupMenu popupmenu ;
         public DisplayStrip()
              addMouseListener( this );
              addMouseMotionListener( this );
         public void mousePressed(MouseEvent me)
              pressed = me;
         public void mouseClicked(MouseEvent e) {}
         public void mouseReleased(MouseEvent e) {}
         public void mouseDragged(MouseEvent me)
              location = getLocation(location);
              int x = location.x - pressed.getX() + me.getX();
              int y = location.y - pressed.getY() + me.getY();
              setLocation(x, y);
         public void mouseMoved(MouseEvent e) {}
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}
         public void DisplayStripRun()
              setSize(100, 10);
              setAlwaysOnTop(true);
            jp = new JPanel();
              jp.setBackground(Color.GREEN);
              jp.addMouseListener(new MyMouseListener());
              jl = new JLabel();
              jl.setText("Right-click Here");
              jp.add(jl);
              add(jp);
              setVisible(true);
              pack();
              popupmenu = new JPopupMenu();
              JMenuItem menuitem = new JMenuItem("Exit");
              menuitem.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent exx)
                        System.exit(0);
              popupmenu.add(menuitem);
         public static void main(String args[])
              DisplayStrip ds = new DisplayStrip();
              ds.DisplayStripRun();
        public class MyMouseListener extends MouseAdapter
            //public class MyMouseListener() {}
            @Override
            public void mouseClicked(MouseEvent e)
                if (e.getButton() == MouseEvent.BUTTON3)
                   System.out.println("Right clicked");
                   jp.setComponentPopupMenu(popupmenu);
                   popupmenu.setVisible(true);
    }

  • How to remove the option "Set as default background..." from the right-click menu on a picture, for all users.

    Hi! I would like to know if there is any possibility to remove the option "Set as default background..." from the right-click menu on a picture, for all users. I know that's possible to edit userContent.css or userChrome.css, but this concerns only a profile at a time and being in a domain, I would like to set this for all people using Firefox.
    Can it be possible to edit a mozilla.cfg file to get the same result?
    Thank you in advance for help and tips.

    AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.

Maybe you are looking for

  • Function pricing activation for sales order

    Hello All. We've done a sales order loading in the system and the sales order didn't caIculate some taxes and get one case it was identified the necessity to do a an uptade, so We would like to do a mass update in the sales order are ocurring this pr

  • Delete if not exists

    Hi, can you abap experts show me how I to implement such a requirement ? LOOP AT lt_it_li INTO w_int_li. CALL FUNCTION 'Z_EXPORT_PERS'   EXPORTING     im_pernr       = w_int_li-IPPERS     im_datum       = w_int_li-EVDAT IMPORTING    EX_NOYRS       =

  • Access font information of subreport objects?

    If I want to programmatically access font information of a subreport element in a report, is there any way to do this - either with the RAS or the older CrystalReports.Engine API? Only TextObjects, FieldObjects, and ParagraphElements seem to have a F

  • 4387 Error Code

    Hello All I am getting this error when installing DPM in Windows Server 2008 R2  Error Occurred .. Check you dpm error logs  Code : 4387  Any help would be appreciated ... 

  • Were can I download iCloud Control Panel 2.1.2

    were can I download iCloud Control Panel 2.1.2