My tooltips have disapeared.
Paul Martinsen -- pmartinsen@hort.cri.nz Wednesday, January 29, 1997 Environment: Win 95, VC++ 4.0 I have a app that was created by the AppWizard with a toolbar, and tooltips. I have just noticed that the tooltips don't appear when I place the mouse over the toolbar. I don't know how long this has been the case (the app is under development), but more importantly I have no idea where to start looking to fix the problem. My CMainFrame::OnCreate contains the line: m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_FIXED) which the comment informs me will provide tooltips, & I know that they have worked in the past. I have some tooltips in other parts of my app, and these work ok. I've also noticed the message still appears in the status bar when I put the mouse over a button. I used spy to check out the toolbar window & saw it was getting a WM_TIMER message, but no TTN_NEEDTEXT message. Is that bad? Any tips on how I can track this problem down would be much appreciated. Tooltips aren't necessary, but I think they are neat. Kind Regards, Paul Martinsen. Paul Martinsen. --------------------------------------------------------------- PhD Student. p.martinsen@auckland.ac.nz Deparment of Electrical and Electronic Engineering University of Auckland. Hort+Research Private Bag Ruakura Research Centre Auckland Hamilton. New Zealand New Zealand. ---------------------------------------------------------------
John R. Hamilton -- skenojrh@infi.net Wednesday, January 29, 1997 [Mini-digest: 3 responses] Paul, Double check your resource editor to ensure the description in the toolbar is properly set. For example, double click the NEW picture on the toolbar and check the properties. You should have something to the effect of Create a new document\nNew The \nNew parameter will ensure that the word "New" appears when you plac= e the mouse over the toolbar. =20 Other than that, I don't see a specific problem. John R. Hamilton ---------- > From: Paul Martinsen> To: mfc-l@netcom.com > Subject: My tooltips have disapeared. > Date: Tuesday, January 28, 1997 1:20 PM >=20 > Environment: Win 95, VC++ 4.0 > =20 > I have a app that was created by the AppWizard with a toolbar, and=20 > tooltips. I have just noticed that the tooltips don't appear when I=20 > place the mouse over the toolbar. I don't know how long this has been=20 > the case (the app is under development), but more importantly I have=20 > no idea where to start looking to fix the problem. My=20 > CMainFrame::OnCreate contains the line: > m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS |=20 > CBRS_FLYBY | CBRS_SIZE_FIXED) > which the comment informs me will provide tooltips, & I know that=20 > they have worked in the past. I have some tooltips in other parts of=20 > my app, and these work ok. I've also noticed the message still=20 > appears in the status bar when I put the mouse over a button. I used=20 > spy to check out the toolbar window & saw it was getting a WM_TIMER=20 > message, but no TTN_NEEDTEXT message. Is that bad? >=20 > Any tips on how I can track this problem down would be much=20 > appreciated. Tooltips aren't necessary, but I think they are neat. >=20 > Kind Regards, > Paul Martinsen. > Paul Martinsen. > --------------------------------------------------------------- > PhD Student. p.martinsen@auckland.ac.nz > Deparment of Electrical and Electronic Engineering > University of Auckland. Hort+Research > Private Bag Ruakura Research Centre > Auckland Hamilton. > New Zealand New Zealand. > --------------------------------------------------------------- -----From: "Nayab Khan" Paul: Make sure that you have enabled tool tips of the base CWnd class. EnableToolTips(TRUE); ---------- > From: Paul Martinsen > To: mfc-l@netcom.com > Subject: My tooltips have disapeared. > Date: Tuesday, January 28, 1997 3:20 PM >=20 > Environment: Win 95, VC++ 4.0 > =20 > I have a app that was created by the AppWizard with a toolbar, and=20 > tooltips. I have just noticed that the tooltips don't appear when I=20 > place the mouse over the toolbar. I don't know how long this has been=20 > the case (the app is under development), but more importantly I have=20 > no idea where to start looking to fix the problem. My=20 > CMainFrame::OnCreate contains the line: > m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS |=20 > CBRS_FLYBY | CBRS_SIZE_FIXED) > which the comment informs me will provide tooltips, & I know that=20 > they have worked in the past. I have some tooltips in other parts of=20 > my app, and these work ok. I've also noticed the message still=20 > appears in the status bar when I put the mouse over a button. I used=20 > spy to check out the toolbar window & saw it was getting a WM_TIMER=20 > message, but no TTN_NEEDTEXT message. Is that bad? >=20 > Any tips on how I can track this problem down would be much=20 > appreciated. Tooltips aren't necessary, but I think they are neat. >=20 > Kind Regards, > Paul Martinsen. > Paul Martinsen. > --------------------------------------------------------------- > PhD Student. p.martinsen@auckland.ac.nz > Deparment of Electrical and Electronic Engineering > University of Auckland. Hort+Research > Private Bag Ruakura Research Centre > Auckland Hamilton. > New Zealand New Zealand. > --------------------------------------------------------------- -----From: "Alexander Grigoriev" Paul, TTN_NEEDTEXT is sent as a WM_NOTIFY message. If you use ON_NOTIFY macro t= o process TTN_NEEDTEXT for other part in your program, toolbar requests wil= l also be routed to this macro (I'm not sure is it bug or feature, but WM_NOTIFY is routed like a WM_COMMAND - not to a window it was sent). Use OnNotify instead of ON_NOTIFY - then your OnNeedTExt function won't eat toolbar's TTN_NEEDTEXT. Regards ---------- > From: Paul Martinsen > To: mfc-l@netcom.com > Subject: My tooltips have disapeared. > Date: 29 =D1=CE=D7=C1=D2=D1 1997 =C7. 0:20 >=20 > Environment: Win 95, VC++ 4.0 > =20 > I have a app that was created by the AppWizard with a toolbar, and=20 > tooltips. I have just noticed that the tooltips don't appear when I=20 > place the mouse over the toolbar. I don't know how long this has been=20 > the case (the app is under development), but more importantly I have=20 > no idea where to start looking to fix the problem. My=20 > CMainFrame::OnCreate contains the line: > m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS |=20 > CBRS_FLYBY | CBRS_SIZE_FIXED) > which the comment informs me will provide tooltips, & I know that=20 > they have worked in the past. I have some tooltips in other parts of=20 > my app, and these work ok. I've also noticed the message still=20 > appears in the status bar when I put the mouse over a button. I used=20 > spy to check out the toolbar window & saw it was getting a WM_TIMER=20 > message, but no TTN_NEEDTEXT message. Is that bad? >=20 > Any tips on how I can track this problem down would be much=20 > appreciated. Tooltips aren't necessary, but I think they are neat. >=20 > Kind Regards, > Paul Martinsen. > Paul Martinsen. > --------------------------------------------------------------- > PhD Student. p.martinsen@auckland.ac.nz > Deparment of Electrical and Electronic Engineering > University of Auckland. Hort+Research > Private Bag Ruakura Research Centre > Auckland Hamilton. > New Zealand New Zealand. > ---------------------------------------------------------------
Greg D. Tighe -- gdt@eng.aisinc.com Friday, January 31, 1997 > Environment: Win 95, VC++ 4.0 > > I have a app that was created by the AppWizard with a toolbar, and > tooltips. I have just noticed that the tooltips don't appear when I > place the mouse over the toolbar. I don't know how long this has > been... One thing to check: Create a new (default) project using AppWizard. Do your tooltips function properly in this new app? If so then something has changed within your old project to break the tooltips. If tooltips do *not* work with the new app then something has changed on your system to break tooltips. Have you installed any beta versions of MS Internet Explorer 3.0? One of the system DLLs shipped with certain betas of MSIE 3.0 were known to have caused similar problems. -Greg Tighe Applied Intelligent Systems, Inc. Ann Arbor, MI gdt@aisinc.com
| Вернуться в корень Архива |