Skip to content

Cannot interact with parent window after creating child window #19

Description

@ReinforceZwei

As the title said, it is not possible to interact with parent window while child window is showing.

(Part of my code. There are many other widgets on parent window)

win := wui.NewWindow()
win.SetFont(winFont)
win.SetTitle("Window")

...

openLogBtn := wui.NewButton()
openLogBtn.SetBounds(15, 91, 85, 25)
openLogBtn.SetText("View Logs")
openLogBtn.SetEnabled(false)
openLogBtn.SetOnClick(func() {
      viewer := wui.NewWindow()
      viewer.SetFont(winFont)
      viewer.SetTitle("Log Viewer")
      viewer.SetHeight(800)
      viewer.SetWidth(600)
      
      textedit := wui.NewTextEdit()
      textedit.SetAnchors(wui.AnchorMinAndMax, wui.AnchorMinAndMax)
      textedit.SetBounds(0, 0, 600, 800)
      textedit.SetText("...")
      viewer.Add(textedit)
      
      viewer.ShowModal()
})
win.Add(openLogBtn)

win.Show()

Is it possible to interact with two windows at the same time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions