| 1 |
gui.widgets.CheckBox = { |
| 2 |
new: func(parent, style = nil, cfg = nil) |
| 3 |
{ |
| 4 |
cfg = Config.new(cfg); |
| 5 |
cfg.set("type", "checkbox"); |
| 6 |
var m = gui.widgets.Button.new(parent, style, cfg); |
| 7 |
m._checkable = 1; |
| 8 |
|
| 9 |
append(m.parents, gui.widgets.CheckBox); |
| 10 |
return m; |
| 11 |
}, |
| 12 |
setCheckable: nil |
| 13 |
}; |