Tooltip for disabled controls
steve.x.northover at oracle.com
steve.x.northover at oracle.com
Tue Apr 9 07:42:33 PDT 2013
On 08/04/2013 3:33 PM, Pavel Safrata wrote:
>
>> What events are need by the toolkit to implement tool tips?
>
> moved, exited, pressed
So it would be possible (but ugly) to only have new versions of these
events that fired when a control is disabled.
>
>> Which controls implement tool tips?
>
> All of them. The tooltipProperty is on the Control class itself.
What I am trying to understand is whether we want tool tips to always
show for disabled controls or whether we just want them to show for
disabled items in tool bars. My feeling is that most controls do not
want tool tips to show when they are disabled. Tool items are an
exception to the rule because hover help allows the user to identify the
action the tool item will perform. I also realize that any control can
be a tool item.
Tool tips are installed by default in FX for:
* color squares in the color picker
* numbered pages in the paginator
Tool tips often appear for:
* tabs items in a tab folder
* tool items in a tool bar
* tree/table items that are clipped (not supported in FX)
* tree/table headers (not supported in FX)
* menu items (not supported in FX)
I suppose we could control whether a tooltip is displayed when a control
is disabled by adding a boolean property. The value would be inherited
from the parent if not otherwise set. In a toolbar, tool tips would be
displayed by default. In other controls like tree or table, they would not.
Steve
More information about the openjfx-dev
mailing list