Adding a PNG Image
- Last UpdatedOct 26, 2022
- 1 minute read
AddPixmap( !pixmap is STRING )
!pixmap is a string holding the file pathname of the required .png file.
AddPixmap( !pixmap1 is STRING, !pixmap2 is STRING )
!pixmap1 corresponds to the unselected state of the gadget, and pixmap2 corresponds to the selected state. Specifying !pixmap1 as the null string ' ' will leave the current selected pixmap unchanged.
PARAGRAPH gadgets only have one pixmap which is represented by the .VAL member, and so can be directly set or changed using !this.myPara.val = '<pixmap-pathname>.