Icons from Resource Files
- Last UpdatedOct 25, 2022
- 1 minute read
During form definition, where the form gadgets and members are being defined, icons can easily be added to the form.
Just after pixmap, the string Shared>ID_BACK specifies the resource file to look into for the relevant image file in this case ID_BACK. The special character (>) is important in this case to separate the resource file from the resource key.

Outside of the form setup, that is in the form methods, icons can also be set at this point using addPixmap with takes one parameter in single quote as shown:

In the event that a resource file or key cannot be located, an error message is shown.