| 1 |
# Support for Tooltip |
| 2 |
# Written by: Dominique Michel <[email protected]> |
| 3 |
# |
| 4 |
# Usage : FvwmButtons-Tooltip <name> <title> <"string to display"> <geometry> <layer> <delay> |
| 5 |
# |
| 6 |
# where <name> is the name of the button such as FvwmButtons-Tooltip-<Name> |
| 7 |
# <title> is the titile to draw on the button. It support gettext. |
| 8 |
# <"string to display"> can be anything, i.e. $[My_Var_Env] |
| 9 |
# <geometry> is in standard X11 notation (+x+y are enough) |
| 10 |
# <layer> is the layer in wich the tooltip will be draw |
| 11 |
# <delay> is the time in msec during wich the tolltip will be visible |
| 12 |
# An argument with a space must be quoted. |
| 13 |
# |
| 14 |
# Example : |
| 15 |
# + I PointerWindow (FvwmButtons-Music) FvwmButtons-Tooltip Volume "Main volume" "$[CurrentVolume]" "+4-40" 20 1000 |
| 16 |
# will show a tooltip when the pointer is entering on FvwmButtons-Music. |
| 17 |
|
| 18 |
DestroyFunc Fvwm-Tooltip |
| 19 |
AddToFunc Fvwm-Tooltip |
| 20 |
+ I KillModule FvwmButtons-Tooltip-$0 |
| 21 |
+ I DestroyModuleConfig FvwmButtons-Tooltip-$0: * |
| 22 |
+ I *FvwmButtons-Tooltip-$0: Geometry $3 |
| 23 |
+ I *FvwmButtons-Tooltip-$0: BoxSize smart |
| 24 |
+ I *FvwmButtons-Tooltip-$0: ActiveColorset $[infostore.cs_menu_inactive] |
| 25 |
+ I *FvwmButtons-Tooltip-$0: Colorset $[infostore.cs_menu_inactive] |
| 26 |
+ I *FvwmButtons-Tooltip-$0: Rows 1 |
| 27 |
+ I *FvwmButtons-Tooltip-$0: Padding 1 1 |
| 28 |
+ I *FvwmButtons-Tooltip-$0: Frame 0 |
| 29 |
+ I *FvwmButtons-Tooltip-$0: Font "xft:$[panel_font]:pixelsize=$[menu_font_size]:$[panel_font_style]" |
| 30 |
+ I *FvwmButtons-Tooltip-$0: (1x1, Id "Tooltip-$0", Title (Side) "$[gt.$1] $2") |
| 31 |
+ I Style FvwmButtons-Tooltip-$0 Layer $4 |
| 32 |
+ I Module FvwmButtons FvwmButtons-Tooltip-$0 |
| 33 |
|
| 34 |
# It doesn't work well when Schedule is in the same function |
| 35 |
# Usage: Kill-FvwmTooltip <name> |
| 36 |
# |
| 37 |
# where <name> is the same than in Fvwm-Tooltip |
| 38 |
# Example: |
| 39 |
# + I Schedule 2500 Kill-FvwmTooltip Volume |
| 40 |
|
| 41 |
DestroyFunc Kill-FvwmTooltip |
| 42 |
AddToFunc Kill-FvwmTooltip |
| 43 |
+ I KillModule FvwmButtons FvwmButtons-Tooltip-$0 |
| 44 |
#+ I All (FvwmButtons-Tooltip-$0) Schedule $5 KillModule FvwmButtons FvwmButtons-Tooltip-$0 |
| 45 |
|
| 46 |
# vim:ft=fvwm |