Solved

ToolTips with more than one text line

Posted on 1997-10-03
4
230 Views
Last Modified: 2013-11-19
I want add tooltip with more than one line. Any suggestion?
Thanx in advance.
0
Comment
Question by:mguedes
  • 2
4 Comments
 

Author Comment

by:mguedes
Comment Utility
Edited text of question
0
 
LVL 4

Expert Comment

by:mbhakta
Comment Utility
In your resource, add another \n and see what happens. For instance :
&File\nOpen\nFile

So the tooltip should show Open and File in two lines.
0
 

Author Comment

by:mguedes
Comment Utility
The tooltips that i talk are tooltips created with CToolTipCtrl
in my CView derived class and i tested your suggestion with negative response. thanx anyhere!!
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 10 total points
Comment Utility
You can set the maximum width of a tooltip etc.

First you need (a pointer to) your tooltip object.  I you create your own, you already one.  If you use EnableToolTips then you can get a pointer to it with:

CToolTipCtrl* pToolTip = AfxGetThreadState()->m_pToolTip;

Then you can adjust width, popup delay and time etc like this

pToolTip->SendMessage(TTM_SETMAXTIPWIDTH, 0, 160);
pToolTip->SendMessage(TTM_SETDELAYTIME, TTDT_AUTOPOP, 2000);
pToolTip->SendMessage(TTM_SETDELAYTIME, TTDT_INITIAL, 200);
pToolTip->SendMessage(TTM_SETDELAYTIME, TTDT_RESHOW, 200);

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 52
Perl Awk Need Help 3 94
lucky13 challenge 11 111
either24  challenge 19 84
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now