Re: Making value tooltips appear in v5 of Slider control
From: MikeD (nobody_at_nowhere.edu)
Date: 05/01/04
- Next message: Mike: "RE: Making value tooltips appear in v5 of Slider control"
- Previous message: Seigfried: "Re: Default Access Key Behavior"
- In reply to: Faraz Azhar: "Making value tooltips appear in v5 of Slider control"
- Next in thread: Mike: "RE: Making value tooltips appear in v5 of Slider control"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Mike: "RE: Making value tooltips appear in v5 of Slider control"
- Previous message: Seigfried: "Re: Default Access Key Behavior"
- In reply to: Faraz Azhar: "Making value tooltips appear in v5 of Slider control"
- Next in thread: Mike: "RE: Making value tooltips appear in v5 of Slider control"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|