Stock (gb.form)
This class is used for returning predefined icons.
You should not have to use this class directly to get these icons.
Use the
Picture class as an array instead.
Tato třída je statická.
This class acts like a
pouze číst static array.
Static properties
Debug
|
Return or set the Stock class debugging mode.
|
Flags
|
Return the names of all flag icons.
|
Icons
|
Return a string array of all possible stock icon names.
|
List
|
Return a string array of all possible stock icon names.
|
Sizes
|
Return the names of all possible stock icon sizes.
|
Themes
|
Return a list of all icon themes that were detected on the current system.
|
Static methods
GetFlag
|
Return a flag icon from its key.
|
GetSize
|
Return the icon pixel size from a string size like "small" , "medium" , and so on.
|
Refresh
|
Refresh the current stock icon theme.
|
Examples
If we had a
ToggleButton then this click event would change the stock icon displayed.
PUBLIC SUB ToggleButtonDetail_Click()
IF ToggleButtonDetail.Value THEN
ToggleButtonDetail.Picture = Stock["16/view-icon"]
ELSE
ToggleButtonDetail.Picture = Stock["16/view-detail"]
END IF
END
And this next example does exactly the same as above. But here we use a
Picture class to load the stock icon.
PUBLIC SUB ToggleButtonDetail_Click()
IF ToggleButtonDetail.Value THEN
ToggleButtonDetail.Picture = Picture["icon:/16/view-icon"]
ELSE
ToggleButtonDetail.Picture = Picture["icon:/16/view-detail"]
END IF
END