Difference between revisions of "Lua:createImageList"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Added related function template.) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 21: | Line 21: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local form = createForm() | local form = createForm() | ||
local images = createImageList(form) | local images = createImageList(form) | ||
-- Add or assign images before attaching this ImageList to a control. | -- Add or assign images before attaching this ImageList to a control. | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:50, 26 June 2026
Creates an ImageList object.
An ImageList stores reusable images for controls such as menus and list views. If owner is omitted, destroy the object yourself when no longer needed.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| owner | Component or nil | Optional component that owns the image list. |
Returns[edit]
ImageList — The newly created image list.
Examples[edit]
1 local form = createForm()
2 local images = createImageList(form)
3 -- Add or assign images before attaching this ImageList to a control.