sjaehn / bwidgets Goto Github PK
View Code? Open in Web Editor NEWWidget toolkit based on Cairo and Pugl
License: GNU General Public License v3.0
Widget toolkit based on Cairo and Pugl
License: GNU General Public License v3.0
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.
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:
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:
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:
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!)
The background of the two handles "+" and "-" are not shown in HRangeScrollBar and VRangeScrollBar when initialized and added to the main window. They only become visible (and stay visible) once the scrollbar is changed (e.g., dragged). Note, the labels "+" and "-" and all the rest is/are correctly shown all the time.
Theme/Style application to ComboBox/ListBox/SpinBox is hindered because labels are created without a specified URID in the addItem function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.