Concept : Working with Images
Contents |
[edit] Description
You can add images (a View element) either directly to a form or to special controls (such as an ImageButton) within your Bungee-powered applications.
To make the images available to your application, you first add a ResourceProject to your solution. Then you must upload the images and add them to the ResourceProject. When you add an image to a ResourceProject, the image's size is determined automatically and the Height and Width properties are set on the image object. After adding images to a ResourceProject, you can:
- Use images to enhance your forms
- Add an ImageButton to your application
- Add a RadioImageButton to your application
- Create a DynamicImageAction
[edit] ImageButton
An ImageButton displays one of four images, depending on its state (Enabled, Disabled, Down, and Over), instead of text. To implement an ImageButton, you first need to add a ButtonImageSet to your ResourceProject (the ButtonImageSet defines the image for each of the four states). The ImageButton uses the ButtonImageSet to determine which image to display for the various states of the button.
[edit] ImageRadioButton
An ImageRadio button displays one of eight images, depending on both the state (Enabled, Disabled, Down, and Over) and whether or not the button is pressed. Consequently, the ImageRadio button uses two ButtonImageSets instead of one (like the ImageButton, described above).
[edit] DynamicImageAction Control
A DynamicImageAction control lets you change an image dynamically based on a value. The value could be a string, Boolean, or integer.
To implement a DynamicImageAction control, you must first add a ValueImageSet to the ResourceProject, which is a set of images with assigned values.
[edit] See Also
Using Images in an Application
[edit] Tags