Click or drag to resize

General

Right click on the hospot in the HotImage Designer. Select properties form the dropdown menu to invoke the hotspot properties dialog box. The General tab is selected by default. Here we set the Text, Description, Name, Hyperlink, Border, VisibleMode and Visible properties of the hotospot.

General hotspot properties:
  • Text: Enter the text that you would like to be displayed when the cursor moves over the hotspot. The Text property is displayed at runtime in a popup label when the HotImage AutoHotPopup is activated and the AutoHotPopupOptions property is set to TextAndDescription or TextOnly.

  • Description: This is extra data that can be set for the hotspot. The description can be displayed in the AutoHotpopup if the AutoHotPopupOptions property is set to TextAndDescription or DescriptionOnly. The description data can also be obtained through the HotImage event argument that is passed to the HotImage events. The following example displays the description in a label when the mouse is moved over a hotspot:

    private void hotImage2_HotMouseMove(object sender, Deltabit.HotspotEventArgs e) { this.label1.Text = e.Hotspot.Description; }

  • Name: The name property is used to identify the hotspot, and can for example be used to retreive data from a database pertaining to the hotspot. Furthermore the the Name property is used to identify the child HotImage belonging to the hotspot. When the child HotImage is added to the hotspot then the child HotImage takes on the parent hotspot's name.

  • Hyperlink: The Hyperlink is used to store a hyperlink as text that can be used to link to a webpage or web service if required. Here is an example of it's use that invokes a web page when the user clicks on a hotspot:

    private void hotImage2_HotClick(object sender, Deltabit.HotspotEventArgs e) { System.Diagnostics.Process.Start(e.Hotspot.Hyperlink); }

  • Border: The border of the hotspot has a Width, Style and Color. The Width is an integer specifying the width of the border in pixels. A width of "0" will make the border invisible. The Style specifies if the border is solid or interupted eg dashed. The Color specifies the border color. To change the border color click on the color bar to invoke the color dialog box.

  • VisibleMode: Specifies the type of animation that takes place when the Visible property is changed at runtime. Flash will flash the hotspot before becoming visible. Fade will fade the hosptot in or out. Normal will cause no animation to take place.

  • Visible: determines if the hotpot overlay is visible or not. If Visible is false, the hotspot will not be displayed initialy. However if the AutoHotFill or AutoHotBorder are true, the hotspot Fill or Border respectivly will become visible when the mouse moves over the hotspot.