Coder Social home page Coder Social logo

Child windows? about ui HOT 4 OPEN

andlabs avatar andlabs commented on June 26, 2024
Child windows?

from ui.

Comments (4)

cryptix avatar cryptix commented on June 26, 2024

I found a solution to emulate a MessageBox but it involves ui.Do() and thus I had to untangle my code so that the event handler is on another goroutine than the one which creates the main window, which might be a good idea anyway but i'd like some feedback on this.

My utility can be found here and here is some example usage.

The hiding of the parent window is debatable but It's less hassle than deactivating all the controls in it.

from ui.

andlabs avatar andlabs commented on June 26, 2024

The main reason why I have not reimplemented message boxes is because ui.OpenFile() still doesn't work correctly. Disabling controls will also come later.

As for child windows, I'm not entirely sure what you are asking...?

from ui.

cryptix avatar cryptix commented on June 26, 2024

The main reason why I have not reimplemented message boxes is because ui.OpenFile() still doesn't work correctly. Disabling controls will also come later.

Aaah, I see. Okay.

As for child windows, I'm not entirely sure what you are asking...?

Okay, the issue title is missleading/wrong. The question was how to get modal dialogs / lock the parent.

I'm definitely not a fan of those in general but they fit the job quite nicely if you want to focus the user on an error that can't be recovered from.

from ui.

andlabs avatar andlabs commented on June 26, 2024

Right; modal dialogs are not in for the same reason (ui.OpenFile() not working correctly; it has to do with some weirdness with modality).

I'll take a look at your code again and comment on it sometime today.

from ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.