I have a picture control in a user defined object that will be set by a function call
If I pass a disk file name, the function works. If I pass a built-in file name like the one that it displays correctly if unchanged ("Prior1!") like "CustomerBig!" then it displays nothing. I can't find any reference to the picturename not working if you pass a built-in definition. The ribbonbar that the icon picturename is taken from works fine with either disk file names or built-in names.
Is this only going to work for disk files?
type p_icon from picture within uuo_favbut2 event ue_lbuttondown pbm_lbuttondown event ue_lbuttonup pbm_lbuttonup integer x = 105 integer y = 32 integer width = 146 integer height = 128 string picturename = "Prior1!" boolean border = true end type public subroutine of_showicon (string asfilename); isIconImage = asfilename p_icon.picturename = asfilename ibShowIcon = true p_icon.x = (this.width - 146 ) / 2 st_legend.textsize = iiIconTextSize st_legend.x = 32 st_legend.y = 160 st_legend.width = this.width - 64 st_legend.height = this.height - 192 st_legend.textsize = iiTextSize end subroutine