I'm displaying a list of buttons, some of which might be disabled. I need to show a tooltip on the disabled buttons with an explanation of why it's disabled, but it seems I can't disable the button without disabling the tooltip. Is there a simple way around this?
相关问题
- Flex 4 spark Panel has an ugly gray top part
- Programatically enable/disable menuBar buttons in
- List with different column count
- Flex Custom Event dispatching
- How can I show a line under each row of text in a
相关文章
- changin the default width and height of the dropdo
- How can I copy an ArrayCollection of transfer obje
- Does Flash Builder 4 now use AIR 2?
- Flex 4 Scroller
- Communication between Flex module and Application
- how do I make a TileGroup layout that has the jagg
- Change mouse cursor to a bitmap (Flex 4)?
- How to install Flash Builder 4 or a Flash Builder
One way to do this is to override the enabled getter and setter to do what you want. So in my case, I still wanted most mouse events to fire, just not the click event.
Since mouse events now fire, the tooltips work again.
The best choice for me was to put a void label around and in front of the element. Then, if necessary, I set the element to disable and the tooltip works in the label. If not, I put sent the label to back. It works pretty well.
Wrap the Button in a Group, and apply the toolTip to the group instead.
It's a bit ugly, but it works.
Hi, this application works on the disabled button,I used ToolTipManager to do this,
i hope this works for you
have a gr8 time
Ankur Sharma
You will need to use the
ToolTipManager
class to create and destroy the tool tips manually.This article should give you all the info you need to accomplish this:
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf60d65-7ff6.html