Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input boxes text disappears in milliseconds while typing #74

Open
RRancio opened this issue Jun 21, 2023 · 0 comments
Open

Input boxes text disappears in milliseconds while typing #74

RRancio opened this issue Jun 21, 2023 · 0 comments

Comments

@RRancio
Copy link

RRancio commented Jun 21, 2023

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)
// }

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant