Re: Making value tooltips appear in v5 of Slider control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: MikeD (nobody_at_nowhere.edu)
Date: 05/01/04


Date: Sat, 1 May 2004 14:27:05 -0400


"Faraz Azhar" <itz_faraz@hotmail.com> wrote in message
news:7808b5d7.0405010218.611cb788@posting.google.com...
> Hello,
> By default the version 6 of Slider control (MSCOMCTL.OCX one) has the
> ability to display the value of the slider in the tooltip which
> appears when the slider is scrolled. How can I make these tooltips
> appear in v5 of the Slider? I read in the online MSDN that I should
> use TBM_TOOLTIPS to make the tooltips visible but still I couldnt make
> it work. Any suggestions? I tried to do this: SendMessage
> Slider1.hWnd, TBM_TOOLTIPS, byval 0&, byval 0&
>
> PS. i dont remember the actual spelling of TBM_TOOLTIPS, dont be angry
> if ive written it wrong here :)

You should really copy and paste your code, including API function
declarations and constants. It's critical that these are correct. I'm
guessing you mean TBS_TOOLTIPS, which is a style. It doesn't appear this
style can be set after the control is created, which means you're outta
luck.

It's also possible you mean the TBM_SETTOOLTIPS message. This is used to
assign an existing ToolTip control to the slider (or trackbar, as the
Platform SDK calls it). This means you need a ToolTip control, which is not
a control VB has (at least not that you can create yourself). Plenty of
people have created ToolTip controls using all API and even wrapped this
into an OCX or DLL. You *might* be able to use one of those. However, I
think the slider still needs the TBS_TOOLTIPS style, so you're right back to
the first problem of not being able to set this style after the slider's
been created.

Is there a reason you can't just use the 6.0 version of this control?

Mike



Relevant Pages

  • Re: Slider control tooltip problem when used on an ActiveX control
    ... I placed a slider control on an ActiveX control and when trying to ... appear and disappear very quickly close to the main window title bar. ... slider's tooltip to the front, but without an hWnd for the tooltip (not the ...
    (microsoft.public.vb.controls)
  • Re: Making value tooltips appear in v5 of Slider control
    ... >appears when the slider is scrolled. ... when the slider control window is created and has no effect afterward. ... tooltip control and assign it to the slider with the TB_SETTOOLTIPS. ...
    (microsoft.public.vb.general.discussion)
  • Re: Slider control tooltip problem when used on an ActiveX control
    ... move the slider, the tooltips wont work. ... The first time I try to move ... appear and disappear very quickly close to the main window title bar. ... slider's tooltip to the front, but without an hWnd for the tooltip (not the ...
    (microsoft.public.vb.controls)
  • Re: Tooltip missing with slider on usercontrol
    ... the workaround doesn't work for the slider - or I made a mistake. ... I first tried to disable the slider's tooltip window: ... > HI Matthis: ...
    (microsoft.public.vb.controls)
  • Re: Special Characters in ToolTip
    ... I was talking about win32 tooltip control and its styles. ... believe that .NET ToolTip class is just a wrapper under this control. ... internal static extern int GetWindowLong ...
    (microsoft.public.dotnet.framework.windowsforms.controls)