0.3.4 Added dialog for adding beads. /JL
This commit is contained in:
@@ -129,6 +129,17 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, red byte, green byte, b
|
||||
}
|
||||
img, _ := walk.NewImageFromFileForDPI("images/plus_alpha.png", 96)
|
||||
color.add.SetImage(img)
|
||||
color.add.MouseDown().Attach(func(x, y int, button walk.MouseButton) {
|
||||
var data Serie
|
||||
if button == walk.LeftButton {
|
||||
for _, s := range color.Series {
|
||||
if s.Name == mw.serie_combo.Text() {
|
||||
data = *s
|
||||
}
|
||||
}
|
||||
mw.addBeads(name, data, color.ColorID, color.backgroundColor)
|
||||
}
|
||||
})
|
||||
color.info, err = walk.NewImageView(cm)
|
||||
if err != nil {
|
||||
log.Println("Error creating info image view: ", err)
|
||||
|
||||
Reference in New Issue
Block a user