Hi I'm using v9.1 of the desktop alert. I seem to have some difficulty with styling it.
I don't want to specify an appearence object for the caption, text and footer text as this seems to apply to all the text in each, Instead I want to have some normal text with a link in it.
So, instead I'm using the HTML styling option as follows...
theDesktopAlert = New UltraDesktopAlert Dim theDesktopAlertInfo As New UltraDesktopAlertShowWindowInfo()theDesktopAlert.TreatCaptionAsLink = Infragistics.Win.DefaultableBoolean.FalsetheDesktopAlertInfo.Caption = "<span style=""font-weight:bold_x003B_"">New Quartz Application Updater</span><br/><br/>"theDesktopAlertInfo.Text = "Quartz has located a new version of the Quartz application updater. " & strLatestVersion & " is now availeble.<br/><a>Click to perform the update now</a><br/>"theDesktopAlertInfo.FooterText = "<a href=""www.quartztimemanagement.com"">Click to visit the Quartz website</a>"theDesktopAlert.Show(theDesktopAlertInfo)
Its very nearly there, but the problem I have is that, on hover, the font changes and the text moves due to size difference. Obviously, this is not what I want. The font should stay as it is before it applies the hot tracking appearance.
OK, so then I thought, I know, I'll just create a basic appearence that has only a font value and will apply that to all available alert appearance as follows...
Dim normalLinkAppearance As New Infragistics.Win.Appearance()normalLinkAppearance.FontData.Name = "Times New Roman"theDesktopAlert.Appearance = normalLinkAppearancetheDesktopAlert.CaptionAppearance = normalLinkAppearancetheDesktopAlert.TextAppearance = normalLinkAppearancetheDesktopAlert.TextHotTrackAppearance = normalLinkAppearancetheDesktopAlert.FooterTextAppearance = normalLinkAppearancetheDesktopAlert.FooterTextHotTrackAppearance = normalLinkAppearance
However, this does not get applied to the initial display (non hover) appearance.
I've even tried the following...
theDesktopAlert.CaptionHotTrackAppearance = theDesktopAlert.CaptionAppearancetheDesktopAlert.TextHotTrackAppearance = theDesktopAlert.TextAppearancetheDesktopAlert.FooterTextHotTrackAppearance = theDesktopAlert.FooterTextAppearance
But the hover and non-hover styles are still different!
What am I missing?
One more issue with style
...is that I would like the mouse pointer to change when hovering over the link in my alert.text. Preferably not on any text in the alert text, but only the designated anchor text. Is this possible?
Thanks!
Any suggestion on this would be greatly appreciated!
still need help with this. please.
OK, finally figured this one out. It is the application style that is being applied. I needed to edit the .isl file being loaded with this application.
I needed to specifically set the text for both 'hot tracked' and 'normal for the individual items 'DesktopAlertCaptionLink', 'DesktopAlertTextLink' and 'DesktopAlertFooterTextLink'.
I think you can also change the control rendering mode to 'application then control' this will the allow you to mess with the style in code.
Still hoping someone can help with this!