You can drag the Image Hyperlink component
from the Palette's Basic category to the Visual Designer to create an image that links to a URL. The image hyperlink can display both text and an image.
To set the image for the Image Hyperlink component, you can right-click the component and choose Set Image. You then see a dialog box that you can use to specify the image in three ways:
url
property to /resources/image-file
.url
property to the URL you entered.icon
property to the icon name you chose.
url
property has already been set, choosing an icon does not change the appearance of the component, because the url
property takes precedence over the icon
property. For the icon to be visible, the url
property must not be set.
You can drop an Image component or a Static Text component or both on the Image Hyperlink if you want to customize the appearance of the link.
Other than the extra support for an image, an Image Hyperlink is essentially the same as a Hyperlink component. As with the Hyperlink component, if you set the action
property and do not set the url
property, the page is submitted. If instead you set the url
property, the link is a normal hyperlink that sends the browser to a new location, does not submit the page, and ignores any action
property setting. You set the component's properties in its Properties window.