Button tooltip: shows mnemonic instead of accelerator. Bug or feature?

Hi,
when you set a mnemonic key and an accelerator key to a button (eg. via an action) the tooltip shows the mnemonic key instead of the accelerator key (eg. for action "paste": "Alt-P" instead of "Ctrl-V"). If the mnemonic key is not present, the accelerator key is still not shown. This is neither the way I would have expect it nor the way I'm used to (eg. have a look at the toolbar buttons of the Sun's open source IDE NetBeans. They show the accelerator key!).
Is this a bug or a feature? :-)
-Puce

Hi Carl -
Button Image Attributes:
Style = Image
Image = <our substitution string>image.gif
(well, that's what we'd like anyway - currently we have:
Image = #WORKSPACE_IMAGES#image.gif)
Many thanks.
And, incidentally, many thanks for fixing that DHTML sublist bug in 2.2 - much appreciated.
Regards,
John.

Similar Messages

  • OBIEE 11g Radio Button Value show horizontally instead of vertically

    Hi,
    Can the Radio Buttons Prompt values in OBIEE 11g be shown horizontally instead of vertically on a dashboard prompt.
    Thanks
    Kathy

    I cannot find it in the out of the box functionality. I think it might be possible with some custom programming which I do not have time to investigate.
    If somebody has done this, please let us know if it is possible.

  • Tooltips shows key instead of long text in Marketing Calendar

    Hi,
    We have the problem:
    "The text code Campaign type is configured as tooltip, only the key value is displayed but not the long text of the campaign type".
    We found the note [OSS 900306 |https://service.sap.com/sap/support/notes/900306], but is for the release 5.0 and our  release is 7.0
    Can anyone help?
    My Best regards.

    The error was resolved applying the note 1510755.

  • One question I am looking for help with is, when you hit the history button I want my last fifty pages to show up instead of just fifteen. Is it possible to

    one question I am looking for help with is, when you hit the history button I want my last fifty pages to show up instead of just fifteen. Is it possible to change that setting?
    TY

    The History menu can only show that fixed maximum of 15 as that is hard coded.
    Maybe this extension helps:
    *History Submenus Ⅱ: https://addons.mozilla.org/firefox/addon/history-submenus-2/

  • I found a solution!! so go into your settings - where it says "use side switch to:" click mute instead of lock rotation. Seems that somehow it was locked on mute (eventhough my buttons were showing me turning volume up and down) now its all working perfec

    i found a solution!! so go into your settings - where it says "use side switch to:" click mute instead of lock rotation. Seems that somehow it was locked on mute (eventhough my buttons were showing me turning volume up and down) now its all working perfect!!!
    THIS WORKED FOR ME>  IT WORKED  I MADE A HOME HD VIDEO AND IT CAME OUT GREAT AND PLAYS ON SPEAKER USING THIS SOLUTION> VIDEO IS CRISP AND CLEAN< AS WELL

    WORKED LIKE A CHARM  THANKS

  • Swing locks up during event handling of a simple button... bug or feature?

    I have the following code:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JToolBar;
    import javax.swing.SwingUtilities;
    public class Test extends JFrame {
         private static final long serialVersionUID = 1L;
         private JButton button;
         public static void main(String[] args)
              SwingUtilities.invokeLater(new Runnable(){public void run(){new Test();}});
         public Test()
              setSize(200,00);
              setLayout(new BorderLayout());
              JToolBar toolbar = new JToolBar();
              button = new JButton("button");
              button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { button.setEnabled(false);}});
              toolbar.add(button);
              getContentPane().add(toolbar, BorderLayout.SOUTH);
              JPanel panel = new JPanel();
              panel.setPreferredSize(new Dimension(200,10000));
              for(int i=0;i<10000; i++) { panel.add(new JLabel(""+(Math.random()*1000))); }
              JScrollPane scrollpane = new JScrollPane();
              scrollpane.getViewport().add(panel);
              scrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
              scrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              scrollpane.setPreferredSize(getSize());
              scrollpane.setSize(getSize());
              getContentPane().add(scrollpane, BorderLayout.CENTER);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setLocationRelativeTo(null);
              setVisible(true);
              pack();
    }This code is lethal to swing: when pressing the button, for no identifiable reason the entire UI will lock up, even though all the event handler is doing is setting the button's "enabled" property to false. The more content is located in the panel, the longer this locking takes (set -Xmx1024M and the label loop to 1000000 items, then enjoy timing how long it takes swing to realise that all it has to do is disable the button...)
    Does anyone here know of how to bypass this behaviour (and if so, how?), or is it something disastrous that cannot be coded around because it's inherent Swing behaviour?
    I tried putting the setEnabled(false) call in a WorkerThread... that does nothing. It feels very much like somehow all components are locked, while the entire UI is revalidated, but timing revalidation shows that the panel revalidates in less than 50ms, after which Swing's stalled for no reason that I can identify.
    Bug? Feature?
    how do I make it stop doing this =(
    - Mike

    However, if you replace "setEnabled(false)" with "setForeground(Color.red)") the change is instant,I added a second button to the toolbar and invoked setEnabled(true) on the first button and the change is instant as well. I was just looking at the Component code to see the difference between the two. There are a couple of differences:
        public void setEnabled(boolean b) {
            enable(b);
         * @deprecated As of JDK version 1.1,
         * replaced by <code>setEnabled(boolean)</code>.
        @Deprecated
        public void enable() {
            if (!enabled) {
                synchronized (getTreeLock()) {
                    enabled = true;
                    ComponentPeer peer = this.peer;
                    if (peer != null) {
                        peer.enable();
                        if (visible) {
                            updateCursorImmediately();
                if (accessibleContext != null) {
                    accessibleContext.firePropertyChange(
                        AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
                        null, AccessibleState.ENABLED);
         * @deprecated As of JDK version 1.1,
         * replaced by <code>setEnabled(boolean)</code>.
        @Deprecated
        public void enable(boolean b) {
            if (b) {
                enable();
            } else {
                disable();
         * @deprecated As of JDK version 1.1,
         * replaced by <code>setEnabled(boolean)</code>.
        @Deprecated
        public void disable() {
            if (enabled) {
                KeyboardFocusManager.clearMostRecentFocusOwner(this);
                synchronized (getTreeLock()) {
                    enabled = false;
                    if (isFocusOwner()) {
                        // Don't clear the global focus owner. If transferFocus
                        // fails, we want the focus to stay on the disabled
                        // Component so that keyboard traversal, et. al. still
                        // makes sense to the user.
                        autoTransferFocus(false);
                    ComponentPeer peer = this.peer;
                    if (peer != null) {
                        peer.disable();
                        if (visible) {
                            updateCursorImmediately();
                if (accessibleContext != null) {
                    accessibleContext.firePropertyChange(
                        AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
                        null, AccessibleState.ENABLED);
        }The main difference appears to be with the KeyboardFocusManager. So instead of using a toolbar, I changed it to a JPanel (so the buttons are focusable). I then notice the same lag when I try to tab between the two buttons. So the problem is with the focus manager, not the setEnabled() method.

  • Gmail buttons not showing up

    firefox isn't showing navigation and settings buttons on gmail, making it hard to see where things are. The tooltips show up when rolled over with the mouse but all buttons don't show, just outline where they should be. Only site doing this.
    Already tried the Content tab suggestions but didn't make any difference

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *https://support.mozilla.org/kb/Changing+fonts+and+colors

  • How do I get a button to show in a list only when a survey is filled?

    I am using cf9 with mySQl 5+. I have two tables:
    Signups -  where people signup to take a course.
    Course_eval – once the course is completed, the student fills in the course evaluation
    I use an inner join on userID in both tables.
    I have a page, showsignups.cfm, that lists all of the students by course. Once a student finishes the survey, a button will show up next to the student in the showsignups.cfm page where it can be clicked on to show the survey by the individual student.
    My problem is instead of showing all students with or without the survey buttons, it only shows the students who have finished the survey. It should show:
    Student’s name | survey button
    Student’s name |
    Student’s name | survey button
    Student's name |
    I thought using a cfloop through the students would give me the effect I want, but alas, no. Here is the code I am using for the cfquery:
    <cfquery name="getsignups" datasource="#application.dsn#">
    select signups.courseTitle,signups.property,signups.calendardate,signups.company,signups.firstna me,signups.lastname,signups.email,signups.phone,signups.userID,signups.signup_id,signups.r id,course_eval.userID,course_eval.id
    from signups INNER JOIN course_eval ON signups.userID = course_eval.userID
    where signups.rid = #rid#
    </cfquery>
    (Rid is the courseID)
    Here is the output I am using:
    <cfoutput>
    <cfloop query="getsignups">
    <tr>
    <td>#rid# - #firstname# #lastname#  |   <a href="mailto:#email#">#email#</a></td><td>Ph: #phone#</td>
    <td width="24"><a href="showsignups.cfm?signup_id=#signup_id#&go=go" class="button">Remove</a></td>
    <cfif isdefined("id")>
    <td width="24"><a href="../../forms/surveys.cfm?userID=#userID#" class="button">Survey</a></td>
    </cfif>
    </tr>
    </cfloop>           
    </cfoutput>
    I know this is a long post, but I wanted to make sure any body who reads this understands what I am trying to accomplish. Any ideas on what I am doing wrong?

    Don't use an inner join:
    <cfquery name="getsignups" datasource="#application.dsn#">
    select signups.courseTitle,signups.property,signups.calendardate,signups.com pany,signups.firstname,signups.lastname,signups.email,signups.phone,si gnups.userID,signups.signup_id,signups.rid,course_eval.userID,course_e val.id
    from signups LEFT OUTER JOIN course_eval ON signups.userID = course_eval.userID
    where signups.rid = #rid#
    </cfquery>
    <cfoutput>   <cfloop query="getsignups">    <tr>      <td>#rid# - #firstname# #lastname#  |   <a href="mailto:#email#">#email#</a></td><td>Ph: #phone#</td>      <td width="24"><a href="showsignups.cfm?signup_id=#signup_id#&go=go" class="button">Remove</a></td>      <cfif isdefined("id")>        <td width="24"><a href="../../forms/surveys.cfm?userID=#userID#" class="button">Survey</a></td>      </cfif>    </tr>  </cfloop>            </cfoutput>  
    Use:
    <cfif id neq "">
    Message was edited by: Eddie Lotter (Typo)

  • How do I get the orange firefox button to show up on the top left corner of my page?

    So, I've installed, and reinstalled the new Firefox 4. It seems like only half the features have shown up. For example, I don't have the orange firefox button in the top left corner. I also don't have the button for bookmarks. On every other machine that I've installed firefox 4 on has not had issues like this. I don't know why I'm having issues on my laptop. If there's a way to fix it, I would appreciate it. I don't mind how it is right now, but I do like the cleaner look and the orange firefox button, instead of the buttons that show up now that are labeled: "File, Edit, View, History, Bookmarks, etc."

    * You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).
    * If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.

  • What do i do when i go to charge my ipod and the apple logo shows up instead of the low-battery icon?

    what do i do when i go to charge my ipod and the apple logo shows up instead of the low-battery icon?

    Try resetting.
    Press and hold the On/Off Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.

  • ToolTip.Show() displays previous data - C# winforms

    Hi,
    I am facing a pblm while using ToolTip.Show().
    I am working on a windows appl. On the form we hv multiple buttons, we can configure the buttons for some frequencies and that freq. will be shown in the tooltip when we move the mouse over the btn.
    In the very first time whn i move my mouse on the btn it shows proper data. but when i reconfigure the btn with diff. data and whn i move the mouse over the btn, it shows the previous data and when i take off the mouse and move again on the btn it
    shows proper data.
    Here is my tool tip fun..
    public void setCardBtnToolTip(string toolTipText)
          CardButtonToolTip.RemoveAll();
          CardButtonToolTip.Show(toolTipText, this, 5000);
    Any Suggestions...

    This function will be called on Mouse_Hover...
    private void ConfigureTooltipAnalogCard(string f_strIpAddr)
    ChannelsOnAFrequency l_objConfigTooTip = null;
    //StringBuilder l_strTooltip = new StringBuilder();
    Globals.g_stringBuilder.Length = 0;
    string l_strMonitorChn = string.Empty;
    string l_strMeasuringChn = string.Empty;
    string l_strCardFrequency = string.Empty;
    try
    if (dCardButton.ContainsKey(f_strIpAddr) && Globals.d.ContainsKey(f_strIpAddr))
    CardButtonControl btnCard = dCardButton[f_strIpAddr];
    l_objConfigTooTip = Globals.d[f_strIpAddr];
    Globals.g_stringBuilder.Append("IP Address :").Append(f_strIpAddr).Append("\n")
    .Append("Card Type :").Append(btnCard.CardButtonText).Append("\n")
    .Append("Transmission :").Append(l_objConfigTooTip.m_strSignalTrans).Append("\n");
    if (l_objConfigTooTip.m_strRmChFreq.Length > 3 && l_objConfigTooTip.m_strSignalTrans == PARAM.Analog)
    int l_freq = Convert.ToInt32(l_objConfigTooTip.m_strRmChFreq);
    l_strCardFrequency = Convert.ToString(l_freq / 1000000) + " MHz";
    else
    l_strCardFrequency = l_objConfigTooTip.m_strRmChFreq + " MHz";
    if (l_objConfigTooTip.IsAnyChannelBeingMonitored())
    SingleChannelDetails singleChannel = l_objConfigTooTip.GetMonitoringChannel();
    if (singleChannel != null)
    l_strMonitorChn = singleChannel.m_strChannelName;
    l_strMeasuringChn = l_objConfigTooTip.GetMeasuredChannelListAsString();
    Globals.g_stringBuilder.Append("Frequency :").Append(l_strCardFrequency).Append("\n")
    .Append("Monitoring Channel : ").Append(l_strMonitorChn).Append("\n")
    .Append("Fingerprint Extraction : ").Append(l_strMeasuringChn).Append("\n");
    //l_strTooltip.Append("Frequency :" + l_strCardFrequency + "\n");
    //l_strTooltip.Append("Monitoring Channel : " + l_strMonitorChn + "\n");
    //l_strTooltip.Append("Fingerprint Extraction : " + l_strMeasuringChn + "\n");
    btnCard.SetCardBtnToolTip(Globals.g_stringBuilder.ToString());
    Globals.g_stringBuilder.Length = 0;
    catch (Exception ex)
    Logger.logmsg(Logger.LOG_EX, "@ConfigureTooltipAnalogCard: " + ex.Message + System.Environment.NewLine + ex.StackTrace + System.Environment.NewLine);

  • [svn:fx-trunk] 11602: Fix for Button tooltips.

    Revision: 11602
    Author:   [email protected]
    Date:     2009-11-09 22:35:11 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Fix for Button tooltips. TextBase dispatches an event when _isTruncated is set through the setIsTruncated() function. This allows ButtonBase to listen for the event and set the tooltip as necessary. If an explicit tooltip is set, then ButtonBase will not set a tooltip.
    QE notes: No
    Doc notes: No
    Bugs: SDK-22260, SDK-23474, SDK-23657
    Reviewer: Evtim
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22260
        http://bugs.adobe.com/jira/browse/SDK-23474
        http://bugs.adobe.com/jira/browse/SDK-23657
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.a s
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as

  • Mac Pro only showing 3gb instead of 4gb of memory

    I have noticed that my mac is running more slowly since installing an update of Leopord. Then when I installed Lion with a clean boot and drive that the Mac is still running very slowly.  I found that I have only 3 GB 800 MHz DDR2 FB-DIMM instead of 4 GB.  It appears that one of the Ram has gone bad!
    What happen to one of my memory sticks and if I want to increase my memory to either 8 GB or 16 GB, what kind would work best with my Mac?
    Processor  2 x 2.8 GHz Quad-Core Intel Xeon
    Memory  3 GB 800 MHz DDR2 FB-DIMM
    Software  Mac OS X Lion 10.7.2 (11C74)
    Thanks,
    Gary

    Ok, for a 2008 here's the dimm slot layout:
    Note tht the picture you show earlier for you slot layout agrees and illustrates this diagram for 4 dimms.   Two identical dimms in slots 1 and 2 of riser 1 and similarly for riser 2.  Your picture also shows what looks like a clickable button to show you how to upgrade the memory ("Memory Upgrade Instructions").  I assume that will take you to some illustration similar to what I posted.
    Look at the OWC page for a 2008 mac pro (click link).  Knowing how these are to be placed in the slots, and knowing you can use 1GB, 2GB, or 4GB dimms, and considering their prices, and how much total memory you want, and whether you want to add to or replace your existing dimms to get to that total, is a budget and math problem only you can solve.

  • Push button responds with spoken message, pronouncing the name of the button... Instead of opening the underlying screen of app!

    Dear all,
    My iPhone 4 doesn't work as it should. If I touch any button it responds with a spoken message, pronouncing the name of the button... Instead of opening the underlying screen of app! Bug in the OS?

    No, bug in the user, who enabled VoiceOver in Accessibility settings. See: http://support.apple.com/kb/HT3577

  • Discoverer report showing null instead blank

    hi,
    I am running report from discoverer and it is showing null instead blank, do I need to check some thing in pref.txt file in oracle 9i
    regards
    kumar

    hi,
    I am running report from discoverer and it is showing null instead blank, do I need to check some thing in pref.txt file in oracle 9i
    regards
    kumar

Maybe you are looking for