Git Product home page Git Product logo

bwidgets's People

Contributors

burtonjz avatar reis0 avatar schnitzeltony avatar sjaehn avatar tonilink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bwidgets's Issues

Text position in TextButton sometimes incorrect

The position of the text in a TextButton is sometimes odd. This happens after the initialization of the TextButton and addition to the main window. And the problem is gone once the TextButton is clicked.

Frame Widget setLayer does not work as expected for widgets that hang over frame

Using BWidgets 1.6.2, I'm building a synthesizer GUI where each module "rack" exists as a BWidgets::Frame, forming the "case". Each Frame receives a position on the GUI. However, the ListBox that populates from the child ComboBox Widgets hangs outside of the Frame, see below:

image

This is expected behavior prior to layers being set as they are all on the same layer, so I set each frame to receive priority such that higher frames receive priority over lower ones using the setLayer() function based on the frame's position within the "case". However, the UI behavior remained unchanged.

So, I then had it loop through all child widgets and set the layer to be the same as the Frame itself:

image

Now, the ComboBox's ListBox seems to be prioritized over the lower Frame, but the SpinBox label and button widgets are not taking that Layer.

So, I ended up giving my Frame derived class a recursive setLayer member function to make sure all children are on the same layer:

image

Now all the widgets look to be viewed properly. However, any label text that hangs outside of the frame (in this case, "Noise" and "Experiment") are not clickable and can only be selected by using the arrow keys on the keyboard.

I don't think I should have to change the Layer of children manually in order to get the desired effect here, and there should be some more intuitive logic for allowing the widgets to prioritize layer within ComboBox in particular such that this can be more straightforward. If I'm missing anything or this should be set up differently though, please let me know!

(P.S. thanks for the library and all the tutorials, it's been fun!)

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.