Print Page | Close Window

Toolkit text length limit

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5842
Printed Date: 16 November 2024 at 5:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolkit text length limit
Posted By: ddlittle
Subject: Toolkit text length limit
Date Posted: 19 December 2006 at 7:35pm
<this is really two questions>
 
1.  Is it possible to use XTP tooltips in a view?  I only saw examples for toolbars...
 
2.  Is it possible to extend the tooltip text limit beyond 80 characters?  I've seen other tooltip libraries do it, but I'm not sure how to do it.  I really need more than 80, and I need some more styles...
 
Thanks!
 
- David



Replies:
Posted By: Oleg
Date Posted: 20 December 2006 at 3:01am
Hi,
1. yes. Add CXTPToolTipContext as member,
 
override OnWndMsg
 
BOOL CMyView::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{

  m_ToolTipContext.FilterToolTipMessage(this, message, wParam, lParam);
 return CWnd::OnWndMsg(message, wParam, lParam, pResult);
}
 
and override
 
INT_PTR CMyView::OnToolHitTest(CPoint point, TOOLINFO* pTI) const
 
2. Standard Tooltip doesn't have such limit....
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ddlittle
Date Posted: 20 December 2006 at 10:32am
The reason I said there is a limit is because I use a strcpy to put the tooltip text in the szText field of the TOOLTIPTEXT structure (I pasted it below).  There is a pointer member as well, but I've never used it.  I wrote my TOOLTIP stuff many years ago, so maybe it's wrong now.  Do you not use the szText member for tooltips?
 

typedef struct tagNMTTDISPINFOA {

NMHDR hdr;

LPSTR lpszText;

char szText[80];

HINSTANCE hinst;

UINT uFlags;

#if (_WIN32_IE >= 0x0300)

LPARAM lParam;

#endif

} NMTTDISPINFOA, *LPNMTTDISPINFOA;




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net