Stock.Icons (gb.form)

Static Property Read Icons As String[]

Desde 3.3

Return a string array of all possible stock icon names.

This property replaces the List property since Gambas 3.3.

Example

This procedure will display all the stock icons in an iconview control. Each icon is sized to a 24x24 picture.

Private Sub DisplayIcons()

  Dim iconKey As String
  Dim iconName As String

  IconViewIcons.Clear()

  For Each iconKey In Stock.Icons

    iconName = "icon:/medium/" & iconKey
    IconViewIcons.Add(iconKey, iconKey, Picture[iconName])

  Next

End