Name
moai.UpdateImage -- update cached image (V2.0)
Synopsis
moai.UpdateImage(id[, isicon])
Function
This function can be used to update the graphics data of an image in RapaGUI's internal cache. You have to pass the identifier of the image that should be updated in id. The optional parameter isicon specifies if the cached image is a Hollywood brush or icon. The new graphics data for the image will also be taken from the Hollywood brush or icon specified by id.

Note that this function is currently only compatible with listview and treeview widgets. You cannot use it to update the graphics of icons in other widgets, e.g. icons in a button widget. After updating the graphics data of an icon in a listview or treeview widget, you also need to make sure that all rows that use that icon are refreshed. You can do that by using the Listview.Rename or Treeviewleaf.SetItem methods, for example.

See Image cache for details.

Inputs
id
identifier of image to be updated
isicon
optional: True if id contains the identifier of an icon, False if it contains the identifier of a brush (defaults to False)

Show TOC