Calendar Multiline Tooltip |
Post Reply |
Author | |
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
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:
|
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |