Skip to reading
Buttons, Labels & Text Boxes

8. Give the button normal and held artwork

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Select the button and open Images. Import the artwork first, then select its project asset in the matching field.

Source table from 8. Give the button normal and held artwork, page 19
Image fieldUse
Background ImageThe explicit normal backdrop.
Media AssetCan supply a normal background on an ordinary button when Background Image is not set.
Hover ImageThe artwork shown when the pointer enters.
Clicked ImageThe artwork shown while a left press is held. It should clear on release.
Background FitContain, stretch, cover or tile, according to the kind of artwork.

Figure 11. The image choices for the test button. Different icons make a temporary state easy to spot; finished artwork would usually use matching variants.

Keep the caption readable over all three pictures. The picture changes the appearance, not the rectangular clickable area or the command stored on the event. Surface hover/focus coloring can remain even after the held picture has cleared.

Do not change Background Image permanently in the Click event merely to make a pressed appearance. Use Clicked Image for a temporary held state. Use a variable and an explicit property change when you actually want a lasting “selected” appearance.

Page 19 of 46Permalink
Go to page