MCPcopy Index your code
hub / github.com/lxn/walk / SetImageList

Method SetImageList

toolbar.go:231–241  ·  view source on GitHub ↗
(value *ImageList)

Source from the content-addressed store, hash-verified

229}
230
231func (tb *ToolBar) SetImageList(value *ImageList) {
232 var hIml win.HIMAGELIST
233
234 if tb.buttonStyle != ToolBarButtonTextOnly && value != nil {
235 hIml = value.hIml
236 }
237
238 tb.SendMessage(win.TB_SETIMAGELIST, 0, uintptr(hIml))
239
240 tb.imageList = value
241}
242
243func (tb *ToolBar) imageIndex(image Image) (imageIndex int32, err error) {
244 if tb.imageList == nil {

Callers 3

imageIndexMethod · 0.95
CreateMethod · 0.80
CreateMethod · 0.80

Calls 1

SendMessageMethod · 0.65

Tested by

no test coverage detected