Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Multiline tooltip
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiline tooltip

 Post Reply Post Reply
Author
Message
Rod001 View Drop Down
Newbie
Newbie


Joined: 29 September 2006
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rod001 Quote  Post ReplyReply Direct Link To This Post Topic: Multiline tooltip
    Posted: 11 October 2006 at 5:40pm
Hi,
 
Is there a way to display the tooltips as muiltline?
 
Thanks.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Rod001 View Drop Down
Newbie
Newbie


Joined: 29 September 2006
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rod001 Quote  Post ReplyReply Direct Link To This Post 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 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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://www.freevbcode.com/ShowCode.asp?ID=6504


--
WBR,
Serge


Back to Top
frannie0730 View Drop Down
Newbie
Newbie


Joined: 04 November 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote frannie0730 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
frannie0730 View Drop Down
Newbie
Newbie


Joined: 04 November 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote frannie0730 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.