ToolTips plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
Line 26: Line 26:
StrCpy $0 1
StrCpy $0 1
ReadRegDWORD $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" "EnableBalloonTips"
ReadRegDWORD $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" "EnableBalloonTips"
${If} $0 != 1
${If} $0 == 1
${OrIf} $0 == ""
   ToolTips::Modern
   ToolTips::Modern
${Else}
${Else}

Revision as of 01:13, 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 $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" "EnableBalloonTips"
${If} $0 == 1
${OrIf} $0 == ""
  ToolTips::Modern
${Else}
  ToolTips::Classic
${EndIf}