comp • gb.form • stock • icons

Stock.Icons (gb.form)

Static Property Read Icons As String[]

Since 3.3

Return a string array of all possible stock icon names.

This property replaces the List property since Gambas 3.3.


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


  For Each iconKey In Stock.Icons

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