Print Page | Close Window

Multiline tooltip

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=5271
Printed Date: 22 November 2024 at 7:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiline tooltip
Posted By: Rod001
Subject: Multiline tooltip
Date Posted: 11 October 2006 at 5:40pm
Hi,
 
Is there a way to display the tooltips as muiltline?
 
Thanks.



Replies:
Posted By: sserge
Date Posted: 12 October 2006 at 3:15am
Well, not sure what do you mean exactly.

Even standard Calendar tooltips are multiline when it is necessary.

Moreover, you can use custom tooltips and make them in any way you'd like -- see Tooltips type in VB sample Option dialog and a corresponding code.

--
WBR,
Serge


Posted By: Rod001
Date Posted: 12 October 2006 at 11:57am

Hi,

 

Thanks for the quick reply,

 

What I am trying to say is that if I use the "CalendarControl1_MouseMove" for custom tooltips behavior and insert a carriage return - linefeed the tooltip displays as a single line of text.

 

Private Sub CalendarControl1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)
    Dim HitTest As CalendarHitTestInfo
    Set HitTest = CalendarControl1.ActiveView.HitTest
   
    If (Not HitTest.ViewEvent Is Nothing) Then
        CalendarControl1.ControlTipText = "[" & HitTest.ViewEvent.Event.Id & "] " & HitTest.ViewEvent.Event.Subject & vbCrLf & HitTest.ViewEvent.Event.Body"
    Else
        CalendarControl1.ControlTipText = ""
    End If
End Sub

 
Thanks
Rod001 


Posted By: sserge
Date Posted: 12 October 2006 at 3:14pm
ControlTipText is a standard VB property...

See following links:
http://vb-helper.com/howto_multi_line_tooltip.html - http://vb-helper.com/howto_multi_line_tooltip.html
http://www.freevbcode.com/ShowCode.asp?ID=6504 - http://www.freevbcode.com/ShowCode.asp?ID=6504


--
WBR,
Serge




Posted By: frannie0730
Date Posted: 04 November 2006 at 1:11pm
I also am having a problem getting the tooltips to display multi line, has anyone got this thing to work and how? An emaple would be nice.
 
Thanks all.


Posted By: frannie0730
Date Posted: 06 November 2006 at 4:41pm
Sorry, after reading my post I notice that there was not much information. What happens is that when I use "CalendarControl1_MouseMove" and one of the links above to create a  standard VB multi line tooltips  property only a single line appears on nothing at all.

Sorry and thanks for any help


Posted By: sserge
Date Posted: 07 November 2006 at 2:42am
Originally posted by frannie0730 frannie0730 wrote:

... one of the links above to create a  standard VB multi line tooltips  property only a single line appears on nothing at all.


Note that there are no standard VB multiline tooltips. All the links above just shows examples of workarounds on this problem.

--
WBR,
Serge



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