Use a PopUpMenu as ToolTip

Hi,
First, I want to know if is possible to make a PopUpMenu look like a Tooltip?
And Secondly, I need to add blank JmenuItems that doesn't responds to the mouse click, it is Possible?
If this two things are possible I could use the popUpMenu as Tooltip using aggregation in the MouseAdapter. Thanks in advance.
PS. I need to calla method if a line of text in the tooltip is clicked, this is why I'm trying to use the popUpMenu instead of the default Tooltip. Thanks
Regards,
Miguel
Edited by: miguelNieves0714 on Apr 18, 2009 8:53 AM

camickr,
You just save my Life!!!! Man Thank you very much. I haven't incorporate the code to my project, but I know this is what I was searching for. Man I really Thank You for this. I don't know how can I pay you back, but if you need something or you are comming to Puerto Rico I'll be glad to welcome you here, my email is [email protected] This simple code will help a lot. These forums rocks!!!! Thank God Good People that want to help others exists. Thank You camickr.
PS. I know you told me that this was already explained in the forums, but i did not manage to find this one. I really Thank You for directing me to the right URL. THANK YOU!!!!!!!!!!!!!!! AND GOD BLESS YOU
Regards,
Miguel A.

Similar Messages

  • Using boxover.js for tooltip with no luck

    Hi,
    I'm trying to use boxover.js provided at this url:
    http://apex-notes.blogspot.com/2008/01/javascript-tootip-integration.html
    I followed all those instructions I'm unable to get tooltip.
    Steps followed:
    1)I've uploaded static file in shared components section of an application and selected the option:"associated to only that aapplication"
    2) added exactly in the page header text:<SCRIPT SRC="#WORKSPACE_IMAGES#boxover.js"></SCRIPT>
    3) for an item where I need tooltip in the HTML form element attributes :
    TITLE="header=[Date] body=[Please pick the date]";
    I've deleted and uploaded boxover.js multiple times will it cause any issue in the back end?
    Thanks,
    Mahender.
    Edited by: user518071 on Sep 23, 2009 7:03 AM

    Hi Andy,
    I downloaded the zip file and after unzipping the file,I've file with "boxover.js".I've uploaded and deleted multiple times in the same application.Will it create any problem by storing previous entries in apex tables ?Eventhough the solution is very simple and straightforward it's not working for some reason
    Thanks,
    Mahendra.

  • Use a JDialog as ToolTip

    Hi,
    First, I want to thanks every contributor of these amazing forums. Secondly, I want to know if is possible to use a JDialog as a Component's Tooltip. The reason for this, its that I want to display an information and I need the be able to click on the tooltip, to go to the clicked information. Any help will be appreciate it. Thanks in advance.
    PS. Sorry for my English, hope is understandable.
    With Regards,
    Miguel

    Hi camickr,
    Thanks for your fast reply I have already override the getToolTip method (for tool tip refresh purposes). The JEditorPane is a great idea, but how i use it in the getToolTip method of my components if the expected return type shopuld be JToolTip.
    PS. I am already using HTML in the tool tip for formatting purposes and to use a icon. It is possible to call a method within the HTML? My problem is that I'm displaying (in the tool tip) information from a JTable and I want to be able to click on a part of the text (what could be a jLabel in the Editor Pane) and as soon as the click happens I want to set the select row of the JTable corresponding to the clicked information.
    Thanks in advance
    Miguel
    Edited by: miguelNieves0714 on Apr 16, 2009 2:14 PM

  • Using app.popUpMenu() in Livecycle

    I have read some articles by T Parker on how to create popup menus buttons with Acrobat but I can not get them to work in LiveCycle.  The pop up menus work but I can not get it to return a value.  Can this even be used for LiveCycle and if so how?

    var cChoice = app.popUpMenu("Introduction", "-", "Chapter 1",
    [ "Chapter 2", "Chapter 2 Start", "Chapter 2 Middle",
    ["Chapter 2 End", "The End"]]);
    app.alert("You chose the \"" + cChoice + "\" menu item");
    I copied that straight from the Acrobat API Reference and into LiveCycle Designer and it worked immediately for me.
    Kyle

  • What is the Popup class used for

    I always thought that a Popup should have some basic functionality, such as the pupup should close when:
    a) the escape key is pressed
    b) the popup loses focus
    The popup class provides none of the above functionality and in     fact seems to require some obscure code to
    even get the keyboard focus to work properly.
    Using a JWindow seems to provide the same functionality as a Popup.
    JPopupMenu seems to support both of the above requirements.
    Run the following program:
    a) click on each of the buttons
    b) click on an empty part of the frame
    It appears to me that whenever you need a "popup" you should use a JPopupMenu.
    Is the Popup class good for anything? Does it provide any functionality that I am not aware of?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class PopupTest extends JFrame
         String[] numbers = { "one", "two", "three", "four", "five" };
         public PopupTest()
              getContentPane().setLayout( new FlowLayout() );
              JButton popup = new JButton("Popup as Popup");
              popup.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        popupPopup(e);
              getContentPane().add(popup);
              JButton window = new JButton("Window as Popup");
              window.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        windowPopup(e);
              getContentPane().add(window);
              JButton menu = new JButton("PopupMenu as Popup");
              menu.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        menuPopup(e);
              getContentPane().add(menu);
         private void popupPopup(ActionEvent e)
              JList list = new JList(numbers);
              list.setSelectedIndex(0);
              PopupFactory factory = PopupFactory.getSharedInstance();
              Popup popup = factory.getPopup(this, list, getLocation().x, getLocation().y);
              popup.show();
              Window window = SwingUtilities.windowForComponent(list);
              if (window != null)
                   window.setFocusableWindowState(true);
              KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent(list);
         private void windowPopup(ActionEvent e)
              JList list = new JList(numbers);
              list.setSelectedIndex(0);
              JWindow window = new JWindow(this);
              window.getContentPane().add(list);
              window.pack();
              window.setVisible(true);
              window.setLocation(getLocation().x + 200, getLocation().y);
         private void menuPopup(ActionEvent e)
              JList list = new JList(numbers);
              list.setSelectedIndex(0);
              Component c = (Component)e.getSource();
              JPopupMenu menu = new JPopupMenu();
              menu.add(list);
              menu.show(c, 0, 0);
              list.requestFocusInWindow();
         public static void main(String[] args)
              PopupTest frame = new PopupTest();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.setSize(500, 200);
              frame.setLocationRelativeTo( null );
              frame.show();
    }

    you'd use Popup like JPopupMenu does, via a PopupFactoryYes you can get the Popu from the PopupFactory, but I think you are missing the point of my question. Popup has two methods, hide/show. It provides no other funtionality. I must write code to handle the escapce key and close the popup when it loses focus.
    When I use a JPopupMenu and add a component to the menu, it appears to add some listeners to the component to handle the escape key and loss of focus.
    I think it's safe to say that you're right when you say that it's preferable to use
    JPopupMenu (my experience as well).That was my conclusion, but I was just wondering it I was missing anything.
    It turns out that there are used in tooltips which, by essence, don't need any
    input from the user (whether keyboard or mouse) I guess thats what I was missing, only use a Popup in tooltip type situations.

  • Dynamic PHTMLB PopupMenu

    Anyone have any idea why I can't get my popupmenu to work?  I have two sets of data, one we'll call code groups and the other group items.  I simply want the group items to be a submenu of their group.  I can get exactly one group item to slide out, and it looks strange in a large font.
    Anyone see something I don't? 
    method ZFILL_OTEIL_POPUP .
    data: wa_popup like line of oteilgroup,
          lv_group type zqpgt_tab,
          lv_item  type zqpct_tab,
          lv_text type string,
          separator(3) value ' - '.
    field-symbols: <group> type zqpgt,
                   <item>  type zqpct.
    lv_group = me->zget_group_codes( p_katalogart = 'B' ).
    lv_item = me->zget_item_codes( p_katalogart = 'B' ).
    data: id type string,
          index type string.
    loop at lv_group assigning <group>.
      clear wa_popup.
      clear id.
        refresh oteilitem.
      move sy-tabix to index.
      concatenate 'oteilSubPopup' index into id.
      concatenate <group>-codegruppe <group>-kurztext into lv_text
                  separated by separator.
      wa_popup-menuitemid = 'oteilPopup'.
      wa_popup-submenuid  = id.
      wa_popup-text = lv_text.
    wa_popup-cancheck = 'X'.
      wa_popup-enabled  = 'X'.
      append wa_popup to oteilgroup.
      loop at lv_item assigning <item>
           where codegruppe = <group>-codegruppe.
        clear wa_popup.
        concatenate <item>-code <item>-kurztext into lv_text
                    separated by separator.
        wa_popup-menuitemid = id.
        wa_popup-text = lv_text.
       wa_popup-cancheck = 'X'.
        wa_popup-enabled  = 'X'.
        append wa_popup to oteilitem.
      endloop.
        append oteilitem to oteilitems. "deeply structured itab
    endloop.
    endmethod.
    LAYOUT
                    <td><htmlb:label for="object" text="Object Code"/></td>
                    <td><htmlb:inputField id="damage" value="//model/notif_fields.fecod" disabled="true"/>
                        <phtmlb:popupTrigger id="oteilTrigger"
                                             popupMenuId="oteilPopup"
                                             isInteractive="true" >
                        <htmlb:image src="s_b_hint.gif" />
                        </phtmlb:popupTrigger>
                        <phtmlb:popupMenu id="oteilPopup"
                                          firstVisibleItemIndex="1"
                                          maxVisibleItems="25"
                                          items="<%=oteilgroup%>">
                        </phtmlb:popupMenu>
    <% data: wa_item type PHTMLB_POPUPMENUITEMS,
             id type string,
             index type string. %>
    <% loop at oteilitems into wa_item.
           move sy-tabix to index.
           concatenate 'oteilSubPopup' index into id. %>
           <phtmlb:popupMenu id="<%= id %>"
                             onSelect="myOteil"
                             firstVisibleItemIndex="1"
                             maxVisibleItems="25"
                             items="<%= wa_item %>">
           </phtmlb:popupMenu>
           <% refresh wa_item. %>
    <% endloop. %>

    Hi Thomas,
             Thanks for the reply.
             As you have said there are no background or MouseOver color for popupMenu. I am using a workaround for this by putting the popMenuItems in an html table and then changing the above said attributes for the individual cells. This works fine in normal menu but no effect when used with popupMenu. If you want I can send you the code but that will be possible tomorrow.
    Regards
    PRAFUL

  • Is there a way to have tooltips for every column in a TableView?

    Hi there!
    I found in documentation that any node and control can show a tooltip ( http://docs.oracle.com/javafx/2/api/javafx/scene/control/Tooltip.html ) but I can't get tooltips to work for TableColumn (a column from TableView).
    Do you have any idea how could I have tooltips for each column of the table view?

    TableColumn's are neither controls nor nodes, so you can neither set nor install tooltips on them.
    You can use cellfactories to set tooltips on cells generated from the factories.
    You can use css style lookups (node.lookup function) to get access to table nodes (such as the headers) after the tableview has been displayed on a stage and then manipulate the displayed nodes to add tooltips. It's not a great approach, but it is the only approach I know at the moment that would work.

  • How to Add an image to an href link when using html

    I am creating specific links that redirect to specific pages using java script and want to add an image instead of using text.   Here is an example of the anchor tag
    <a href="***siteloklogout***">logout</a>
    This is a logout function that redirects to the home page.  Not sure how to attach an img.  I have uploaded the image to the ftp but cannot get it to work. 
    Is there a way to attach links using the current hyperlink tool in Muse or is there a way to load the image asset into muse.

    Hi CSchonhaut,
    There are two ways that I can suggest.
         1. Apply the fire image to the rollover of the Menu Item,
         2. Use the Composition Widget - tooltip. Place the trigger on the hyperlink and target behind it, so that once you hover the trigger, target with the fire image in it pops up.
    Hope that helps.
    - Abhishek Maurya

  • Change font type/style of app.popUpMenu

    Hi~~
    I am using app.popUpMenu to show an array of items, in which there are some Chinese charaters but they are displayed as "..."
    I guess the  default font type of the popup menu cannot show these Chinese characters...
    Is there any method to change the popup menu font type / style?
    Also I tried to change the font of the textfield which populates the popup menu, but it doesn't work...
    ~~~~ thanks for any suggestions!

    hi radzmar~ thanks for your advice!
    i tried but it cannot solve my problem...all the chinese characters can be shown correctly in the form except this app.popUpMenu
    the chinese characters can also be shown in alert message box
    any other suggestions ><

  • No tooltips for long filenames in list view any longer?

    hello all,
    i'm trying to figure out why no tooltips are showing for long file / folder names in finder any longer? they appear in icon view, but i've always used list view and tooltips would normally appear when the cursor is moved over a long filename.
    this is on 10.8.1, i'm pretty sure they worked on 10.8
    any suggestions are much appreciated, thank you.

    thank you for the link though the article seems to not exist.  anyway, i tried changing the delay time for the tooltips in finder, but it had no effect on displaying tooltips when hovering over file/folder names.
    it should be noted that tooltips still appear when hovering over finder icons, like view options, etc.
    is there a preferences file that may need looking at?

  • Sizing a TextView to fit its contents (e.g., tooltip, chat bubble, etc.)

    In Flex 3, with a Text component, I can make the component fit its contents (use case: multi-line tooltip, chat-bubble) so that I restrict the max width and the height grows as necessary.<br /><br />To do this in Flex 3, you need to patch the Text component, e.g.<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Text xmlns:mx="http://www.adobe.com/2006/mxml"><br />     <!--<br />          Text fields do not wrap correctly as reported in this bug:<br />          https://bugs.adobe.com/jira/browse/SDK-12826<br />          <br />          This fix, suggested by Mike Schiff, fixes the issue, so that we can set a minWidth of 0, <br />          maxWidth, and width=100% and have speech bubbles correctly size themselves.<br />          https://bugs.adobe.com/jira/browse/SDK-12826#action_157090<br />     --><br />     <mx:Script><br />          <br />               override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {<br />                    super.updateDisplayList(unscaledWidth, unscaledHeight);<br />                    textField.wordWrap = textField.wordWrap || (Math.floor(measuredWidth) != Math.floor(width)); <br />               }<br />          <br />     </mx:Script><br /></mx:Text><br /><br />Then you can:<br /><br /><naklab:TextWithWrap<br />    htmlText="{someText}"<br />    width="100%"<br />    maxWidth="220"<br />    minWidth="0"<br />    fontWeight="normal"<br />    fontSize="12"<br />    color="#000000"<br />/><br /><br />I cannot find a way to do this with the TextView component in Gumbo. How would you recommend making a TextView component fit its contents and should I file an ECR on this or am I missing something? (Otherwise, how would you handle the use cases above in Gumbo?)<br /><br />Thanks,<br />Aral

    OK, the forum ate my code :(
    Not sure how to get it to display. Feel free to close the topic as it doesn't make sense. I'll ask elsewhere.
    Thanks,
    Aral

  • Cell tooltip for ALV

    Hello experts,
    I am new to ALV development. I have created an ALV grid report which displays data fetching from DDIC tables.
    I want to display tooltip for each individual cell of the ALV, I know about using field category property SELTEXT_M but its used for entire column tooltip. My requirement is to display tooltip for individual cell in the grid.
    Please provide me simple explanation to use tooltip for cell in ALV.
    Simple example code would be appreciated.
    Thanks in advance.
    Regards,
    Viral Patel

    Hi,
    If you are using OOPS ALV then, there is a field available in the field catalogue : TOOLTIP which you can use to display the tooltip for the column header.
    try this:
    wa_fcat-TOOLTIP = '-tooltip--'.
    I hope it helps you.
    Thanks & Regards,
    Radhika

  • Help Needed re:Spry Tooltip and render issue with XP

    I have an issue with spry tooltip and XP not sure why ?
    Here it is I am designing/building a website for a restaurant, I am making use of the spry tooltip on the menu page as a rollover for a larger menu image to appear, which it does. Everything is cool in Vista etc. but if you are using XP for some reason the rollover effect only works once and then no more until the page is refreshed which is really annoying and certainly not the effect i am looking for. I know this is occuring because of this line of code :-
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> which I need to keep in.
    Does ANYONE know a quick fix ? or ran into this problem before ?
    I am sure the attached .JS file is the key to fix.
    Thanks in advance
    Andy....!

    This is one of those situations you may need to see to believe,
    whats happening is only on an XP IE8 browser which the ******** client is looking at (what are the odds)?
    On newer systems and other browsers NO problem:-
    You bring up the menu page and mouse over spry triggers and it works PERFECTLY, but only ONCE when you try again the cursor flickers as the trigger is engaged and nothing is revealed? I am sure the spry is working but somehow it is being hidden from rendering correctly as if trapped behind another image or on a delay, and then when you mouse off maybe 500ms later the image flickers into view and dissappears almost instantly. (an obvious error of some sort)
    This only occurs when I place this source code in the head tags:-
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    Without code works fine, but I need to include this code for it to look as it should cross browser.
    Ask me anything I will help as much as I can but right now I am at a loss !
    Thanks in advance
    Andy....!

  • Tooltips for icons in the MIME repository

    Dear community,
    when using the "old icons", i.e. those starting with 'ICON_', (which - I know - I shouldn't do), each icon comes with some sort of automatical tooltip. Whereever I use the icon, the tooltip is also there.
    My questions:
    - Is there a way to attach (translatable) tooltips to my own icons that I upload into the MIME folder of a webdynpro component?
    - Is there a better place to put my icons to (where I could attach a tooltip)?
    - And finally: Is there a way to change the tooltip of an icon?
    Any hint is greatly appreciated.
    Best regards,
    Christoph

    Hi Lekha,
    oh, that is a misunderstanding! I certainly know about the tooltip-property for images.
    My question refers to this "automatic" tooltip functionality that occurs whenever you use one of the ICON_* icons.
    Consider the following example:
    I have a table with a column containing always exactly on of several icons. To realize this I use the Image cell editor and bind the source property to a context attribute that contains the icon source.
    Similarly, I could also bind the tooltip property of the cell editor to a context attribute that contains the tooltip text. The down side of this is that I have to introduce (and maintain) an additional context attribute, although the tooltip for one specific icon is always the same. This especially hurts if you have many tables with icons and extensive context mappings.
    In contrast, if you just refer to an ICON_* icon, you ALWAYS get a tooltip automatically, e.g. ICON_DUMMY gives you the tooltip "placeholder icon".
    Any hints here?
    Best regards,
    Christoph

  • How to show the tooltip in button

    Hi,
    I am using 11.1.1.4.
    I want to show the tooltip as button. so which tag i want to use and show the tooltip.
    Regards,Ragu

    'shortDesc' will help you.
    chk here
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/index.jspx
    Edited by: vinod_t_krishnan on Jun 6, 2011 4:02 PM

Maybe you are looking for

  • MMC Console -- install fails on 64 bit systems (both W7 and VISTA Ultimate)

    Hi all was trying to install trial version (ABAP) on W7 X-64 bit MMC snap in console fails to install -- message  SAP MMC snap in This installation does not support 64 bit  Windows operating systems -- please use the  the corresponding 64 bit version

  • Write back - how OBIEE decides  insert or update action ?

    Hello I have a question regarding write-back. I have both an insert and update statement in my template file. I want to give the users ability to insert new rows and update existing ones. I am able to do both, but sometimes the insert/update behavior

  • Trouble Downloading Movies

    Sometimes when I download movies, I let the computer download them for a while. When I got back to the computer one day while trying to download a movie, it's filesize went from 1.14GB all the way back down to 194MB. Why is this? It was so close to f

  • Strange behavior in BEX web query

    Hi expert I met a very strange issue, one report is showing data randomly. The report shows no data for a particular key figure. If I save as a Y query without any change, data is there. This is happening irrespective of what selections you provide.

  • Duplicate Events in my Library?

    Opened up iMovie this am and there are two copies of each of my Events in the Event Library. What happened? The only thing I have done since last using it was to drag a copy of each event to an external drive for backup. Would this place an additiona