ToolTips plug-in: Difference between revisions
No edit summary |
|||
Line 21: | Line 21: | ||
On Windows Vista and Windows 7, the width required for the very first line of your tooltip is used for the entire tooltip. This can cause 2nd, 3rd, etc. lines to be cut off if they are wider than the first line. ( on Windows XP, the width of the widest line is used for the entire tooltip ) | On Windows Vista and Windows 7, the width required for the very first line of your tooltip is used for the entire tooltip. This can cause 2nd, 3rd, etc. lines to be cut off if they are wider than the first line. ( on Windows XP, the width of the widest line is used for the entire tooltip ) | ||
If the user has disabled balloon tooltips, the Modern tooltip type will not be displayed. If you wish to use modern tooltips you may wish to add a fallback to the Classic tooltip if this is the case: | |||
<highlight-nsis> | |||
StrCpy $0 1 | |||
ReadRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" "EnableBalloonTips" $0 | |||
${If} $0 != 1 | |||
ToolTips::Modern | |||
${Else} | |||
ToolTips::Classic | |||
${EndIf} | |||
</highlight-nsis> | |||
[[Category:Plugins]] | [[Category:Plugins]] |
Revision as of 00:21, 3 May 2010
Author: Joel (talk, contrib) |
Links
Older version (does not support color/font changes)
Tooltips.zip (2 KB) (Mirror)
Newer version (supports color/font changes)
Main
Description
Plugin that will display a custom tooltip (modern or classic) in the user selected control.
The older version will use the system default colors and font settings.
For the newer version you -must- specify the colors and font to use.
Limitations and known issues
Custom color and font settings (newer version feature) do not work on Windows 7.
On Windows Vista and Windows 7, the width required for the very first line of your tooltip is used for the entire tooltip. This can cause 2nd, 3rd, etc. lines to be cut off if they are wider than the first line. ( on Windows XP, the width of the widest line is used for the entire tooltip )
If the user has disabled balloon tooltips, the Modern tooltip type will not be displayed. If you wish to use modern tooltips you may wish to add a fallback to the Classic tooltip if this is the case:
StrCpy $0 1 ReadRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" "EnableBalloonTips" $0 ${If} $0 != 1 ToolTips::Modern ${Else} ToolTips::Classic ${EndIf}