Arbortext Command Language > Functions by Alphabetical Listing > dlgitem_set_default_leaf_image
  
dlgitem_set_default_leaf_image
dlgitem_set_default_leaf_image(window, dlgitem, image)
Sets image as the default image to be used for all list entries that do not contain sublists in an outline list dialog item dlgitem (unless overridden by a specific leaf image setting for a particular listtag list entry) in window window. The image appears at the front of all the list entries that do not contain sublists. If you were to create a file browser using an outline list, you may use a file icon as a default leaf image. If dlgitem does not refer to an outline list item, $ERROR is set and zero (0) is returned. Otherwise, one (1) is returned.
The window parameter is a window identifier. dlgitem is the value of the control's id attribute.
Example
ret = dlgitem_set_default_leaf_image(win, "OutlistItem", "File")
sets the image for all list entries that do not contain sublists in the outline list item OutlistItem to the File image.
Related topic
dlgitem_set_listtag_leaf_image_at