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

Calendar Multiline Tooltip

 Post Reply Post Reply
Author
Message
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Topic: Calendar Multiline Tooltip
    Posted: 26 April 2007 at 4:50am
Hi,
 
I have searched this forum and found that this problem has plagued others. I am trying to display a custom tooltip that uses multiline but can't get any of the workarounds to work!!!
 
When using vbCr, vbLf, vbCrLf or vbNewLine it doesn't create the desired effect, instead it displays them as block characters instead of performing their function on the tooltip display.
 
I would be grateful if anyone has a method of doing this
 
Please see the below screenshot for the issue described:
 
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2007 at 3:16am
Ok, I have had a reply from the Codejock Support team and have the solution for this issue. I have posted the solution below for anyone else who had this issue.
 
Solution:
 
You have to use GetItemText event (and set corresponding flag in AskItemTextFlags property)
 
EXAMPLE:
 
CalendarControl.AskItemTextFlags.SetFlag xtpCalendarItemText_EventToolTipText (P.S. I set this call in the Calendar mousemove event)
 
Private Sub CalendarControl_GetItemText(ByVal Params As XtremeCalendarControl.CalendarGetItemTextParams)
 
    If Params.Item = xtpCalendarItemText_EventToolTipText Then
        Params.Text = "ID = [" & Params.ViewEvent.Event.Id & "] " & vbCrLf & Params.ViewEvent.Event.Subject & _
        vbCrLf & Params.ViewEvent.Event.Location & vbCrLf & Params.ViewEvent.Event.Body
    End If
 
End Sub
 
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.172 seconds.