nucular icon indicating copy to clipboard operation
nucular copied to clipboard

Input boxes text disappears in milliseconds while typing

Open RRancio opened this issue 2 years ago • 0 comments

i think is my issue but not sure at 100%, and didn't find any fix in issues

ConEmu64_kQqtELLFBl

This is related to how the UI refreshes? I placed this same event in another function designed to only refresh the progress bar when it moves, but I don't think it's related.

` func updatefn(w *nucular.Window, od *overviewDemo) { keybindings(w)

w.Row(50).Dynamic(1)

image64 := ""
imageData := strings.Split(image64, ",")[1]
imageBytes, err := base64.StdEncoding.DecodeString(imageData)
if err != nil {
	return
}

img, err := png.Decode(bytes.NewReader(imageBytes))
if err != nil {
	return
}

backgroundColor := color.RGBA{R: 18, G: 18, B: 18, A: 255}

bounds := img.Bounds()
rgba := image.NewRGBA(bounds)
draw.Draw(rgba, bounds, &image.Uniform{C: backgroundColor}, image.ZP, draw.Src)
draw.Draw(rgba, bounds, img, image.ZP, draw.Over)

w.Label(" ", "CC")
w.Label(" ", "CC")
w.Label(" ", "CC")
w.Row(60).Static(230, 300)
w.Label("      ", "CC")
w.Image(rgba)

w.Row(50).Static(203, 200)
w.Label(" ", "LC")
w.Progress(&count, 100, false)
w.Label("", "LC")
od.Text0Editor.Edit(w)

// if w.ButtonText("test") {
// 	go test(w)
// }

} `

RRancio avatar Jun 21 '23 19:06 RRancio