Results 1 to 2 of 2

Thread: ToolTips on disabled elements

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    97
    Vote Rating
    0
      0  

    Lightbulb ToolTips on disabled elements

    Hi,

    I noted that Ext GWT does not show ToolTips on disabled elements (at least for TextToolItem). Is that really the desired behavior?

    E.g. MS Office applications do show tool tips for disabled elements in the tool bar, and IMHO this would be the better behavior also for Ext GWT.

    Would love to see that change in the next release.

    Cheers,

    Joachim

  2. #2
    Ext User
    Join Date
    May 2008
    Posts
    97
    Vote Rating
    0
      0  

    Lightbulb

    As a workaround, it would be possible to use:

    Code:
    public class MenuBarToolItem extends TextToolItem {
    	public MenuBarToolItem() {
    		button = new Button() {
    			@Override
    			public void onBrowserEvent(Event event) {
    				int type = DOM.eventGetType(event);
    
    				if (disabled && (type == Event.ONMOUSEOVER || type == Event.ONMOUSEOUT)) {
    					enable();
    					super.onBrowserEvent(event);
    					disable();
    				} else {
    					super.onBrowserEvent(event);
    				}
    			}
    		};
    	}
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •