Solved

ToolTips with more than one text line

Posted on 1997-10-03
4
241 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
ID: 1307444
Edited text of question
0
 
LVL 4

Expert Comment

by:mbhakta
ID: 1307445
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
ID: 1307446
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
ID: 1307447
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 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