Re: How to create palette buttons with tooltips?
- To: mathgroup at smc.vnet.net
- Subject: [mg124173] Re: How to create palette buttons with tooltips?
- From: John Fultz <jfultz at wolfram.com>
- Date: Wed, 11 Jan 2012 17:20:58 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Reply-to: jfultz at wolfram.com
The tooltip option can easily be migrated to the notebook level, where it'll affect everything in the notebook: CreatePalette[ Tooltip[Button["Button", Appearance -> "Palette"], "Tooltip"], TooltipBoxOptions -> {TooltipDelay -> Automatic}] Unfortunately, Button's Appearance option cannot benefit from a similar treatment because Button[], by default, hardcodes the value of ButtonBoxOptions->{Appearance->Automatic} at the ButtonBox level, which overrides anything specified at the notebook level (there has been discussion about changing this in future versions). I would suggest just making a function called PaletteButton which creates a Button with the right options. Sincerely, John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc. On Wed, 11 Jan 2012 06:00:43 -0500 (EST), Szabolcs wrote: > What is the most convenient way to create palette buttons with tooltips > that use the OS-wide tooltip delay? > > Currently I am using > > CreatePalette@ > Tooltip[Button["Button", Appearance -> "Palette"], "Tooltip", > TooltipDelay -> Automatic] > > But this seems like a lot of work (both TooltipDelay -> Automatic and > Appearance -> "Palette" needed) just to get the behvaiour which could be > expected as a default from a palette. > > When I have several buttons, what's the simplest and most concise way to > do this?