Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 5 Sep 2008 15:14:43 -0400,    group: microsoft.public.win32.programmer.ui        back       


Tooltips for child controls   
I have implemented a spin button that contains an edit control and an 
up-down control.  It works fine except for tooltips.

The parent application window creates a tooltip control and adds my spin 
button with the TTF_SUBCLASS style.  The tool tip correctly displays the 
text when the mouse cursor pauses over the spin button's border, but not 
when it is over the edit or up-down control.

I have tried sending the TTM_RELAYEVENT message to the spin button from the 
edit control's subclass procedure, but it did not have any effect.

Can anyone tell me,,, How do you get tooltips to work with composite 
controls?

Thanks a lot.

David Liebtag
date: Fri, 5 Sep 2008 15:14:43 -0400   author:   David Liebtag

Re: Tooltips for child controls   
"David Liebtag" wrote:
> The parent application window creates a tooltip control and adds 
> my spin button with the TTF_SUBCLASS style.  The tool tip 
> correctly displays the text when the mouse cursor pauses over 
> the spin button's border, but not when it is over the edit or 
> up-down control.

You can add both edit and up-down controls to the tooltip. 
Alternatively, you can specify an area rather than a window for 
the tooltip.

> I have tried sending the TTM_RELAYEVENT message to the spin 
> button from the edit control's subclass procedure, but it did 
> not have any effect.

You should send TTM_RELAYEVENT message to the tooltip, not the 
spin button.

HTH
Alex
date: Sat, 6 Sep 2008 00:13:13 +0300   author:   Alex Blekhman

Re: Tooltips for child controls   
Whoops.  I meant that I sent the TM_RELAYEVENT messages to the tooltip, not 
the spin button.

Because I'm supporting a scripting language which is supposed to support any 
kind of controls the user may want to add, it's a little tricky to add 
children of composite controls to the tooltip.  But, I'll try it.

Thanks.

David
date: Fri, 5 Sep 2008 17:51:12 -0400   author:   David Liebtag

Re: Tooltips for child controls   
Adding the edit and up-down controls works.  Thanks!

David Liebtag
date: Fri, 5 Sep 2008 19:28:31 -0400   author:   David Liebtag

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us