Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » How To Display Tooltip message Collapse All
Subject Author Date
Srinivasan Natarajan Nov 11, 2005 - 7:27 AM

Hi,


I tried to display a  tooltip message (User friendly) message from CView when right click is invoked but it doesn’t show the tooltip message, could you help me ?


void CSampleView::OnRButtonDown(UINT nFlags, CPoint point,BOOL bSelected)
{


 CScrollView::OnRButtonDown(nFlags, point) ;
 CExtPopupMenuTipWnd m_pop;
 m_pop.SetText("test");
 CRect rcAreaScreen ;
 rcAreaScreen.top =100;
 rcAreaScreen.left =100;
 rcAreaScreen.bottom =200;
 rcAreaScreen.right =200;
 this->ClientToScreen( &rcAreaScreen );
 m_pop.Show( this, rcAreaScreen );
 return;


}


or any other method to display the user friendly message


regards


sundar

Srinivasan Natarajan Nov 12, 2005 - 5:12 AM

Hi,


I tried in the same way by declaring


  CExtPopupMenuTipWnd m_pop; in .h file.


But still it doesn’t get displayed. Can you send some piece of code to sundar@cynaptix.com ?


regards


sundar



 

Technical Support Nov 14, 2005 - 3:09 AM

We’ve just sent you a sample project by e-mail.

Technical Support Nov 11, 2005 - 11:47 AM

You create the CExtPopupMenuTipWnd object on stack. The m_pop variable is local in the scope of CSampleView::OnRButtonDown() method. So, it is destroyed after the method completes. You need to create the CExtPopupMenuTipWnd object dynamically or declare it in the class declaration section.