Buttons problem.
-
Hi all, i m new in vc++2005. i load a bitmap or icon on button. i want when mouse indicate on purticular button then name of button show. like on webpage when we indicate on stop button then it shows STOP on mouse tail in yellow box,or same in case of refresh..etc. i dont know how can do it. please help me for this. Thanks in advance.
-
Hi all, i m new in vc++2005. i load a bitmap or icon on button. i want when mouse indicate on purticular button then name of button show. like on webpage when we indicate on stop button then it shows STOP on mouse tail in yellow box,or same in case of refresh..etc. i dont know how can do it. please help me for this. Thanks in advance.
Hi, You can use Tool tip control[^] An example here: Button with ToolTip and/or bitmap resource[^] Best Regards, Suman
-
Hi all, i m new in vc++2005. i load a bitmap or icon on button. i want when mouse indicate on purticular button then name of button show. like on webpage when we indicate on stop button then it shows STOP on mouse tail in yellow box,or same in case of refresh..etc. i dont know how can do it. please help me for this. Thanks in advance.
3 easy steps: 1: Use the
TrackMouseEvent(...)
on the controls in question or capture mouse movement messages to see when the mouse is over the control. 2: When the time is right, use the ToolTip control to cause an immediate tooltip to appear. 3: When the mouse moves off of the control, pop the tooltip. 1 easier step: 1: Use the tooltip control - it was designed for this kind of thing. Check the docs for the tooltip control. Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
Hi, You can use Tool tip control[^] An example here: Button with ToolTip and/or bitmap resource[^] Best Regards, Suman
-
thanks i chekout this but there is an error "'static_cast' : cannot convert from 'void (__thiscall CToolTipRessourceButton::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'" please help me.
Hi, When the error is happening? You tried which? Please provide more info. As James R. Twine said, try adding
TrackMouseEvent()
handler for your button and show the Tooltip control inside that function. If you have problems, please let us know. Best Regards, Suman -
Hi all, i m new in vc++2005. i load a bitmap or icon on button. i want when mouse indicate on purticular button then name of button show. like on webpage when we indicate on stop button then it shows STOP on mouse tail in yellow box,or same in case of refresh..etc. i dont know how can do it. please help me for this. Thanks in advance.
It think you are talking about the tool tip. Use the following class to show that tool tip. http://www.codeproject.com/KB/cpp/Tool_Tip.aspx[^]
[ Screen Capture ][ Tool Tip ][ Muliple Desktops ][Greeting Card ]