Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Styling Desktop Alert
posted

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.False
theDesktopAlertInfo.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 = normalLinkAppearance
theDesktopAlert.CaptionAppearance = normalLinkAppearance
theDesktopAlert.TextAppearance = normalLinkAppearance
theDesktopAlert.TextHotTrackAppearance = normalLinkAppearance
theDesktopAlert.FooterTextAppearance = normalLinkAppearance
theDesktopAlert.FooterTextHotTrackAppearance = normalLinkAppearance

However, this does not get applied to the initial display (non hover) appearance.

I've even tried the following...

theDesktopAlert.CaptionHotTrackAppearance = theDesktopAlert.CaptionAppearance
theDesktopAlert.TextHotTrackAppearance = theDesktopAlert.TextAppearance
theDesktopAlert.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!