AddPictureToStartupList Example

The following example adds a Picture named pic1.grf (in the D:\Program Files (x86)\Proficy\iFIX\PIC directory) to the Runtime environment's startup list of the iFIX WorkSpace.

Dim lErr as Long

lErr = Application.UserPreferences.AddPictureToStartupList_
("D:\Program Files (x86)\Proficy\iFIX\pic\pic1.grf", True)

Note that the full path is required for the picture. Also note that the second paramater, when set to TRUE, adds the picture to the Runtime startup list. When set to FALSE, it adds the picture to the Configuration environment's startup list.