(value *ImageList)
| 229 | } |
| 230 | |
| 231 | func (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 | |
| 243 | func (tb *ToolBar) imageIndex(image Image) (imageIndex int32, err error) { |
| 244 | if tb.imageList == nil { |
no test coverage detected