After reading the manual I must say I'm impressed. This is a nice piece of software. However, license type GPL v3 seems to be a very poor choice in my opinion. Please correct me if I'm wrong, but wouldn't this force any work which just "uses" this library to be published under GPL as well? This is weird for something that abstract as a GUI container and is a reason for me not to use it. Therefore, 1 star only.
Are there any chances switching to BSD? If not, what is the reason for GPL?
Thank you Ben and David for this contribution. The flexible boxes finally provide a way of real interactive GUI scalability. Found nothing comparable.
Unfortunately, still some bugs and missing features (in v1.8) for large GUI applicatons. E.g.
* for containers with 2 or more dividers, sliding one divider behind another one throws "Width and height must be > 0" in Container>Container.repositionChild at 340
* dividers often overlap borders of adjacent panels, looks very unprofessional (perhaps a rounding problem of pixel positions?)
* poor redrawing in case of many nested flexible boxes (one has to watch the controls getting resized back and forth several times until the final result)
* user-defined WindowButtonUpFcn is getting lost when a divider is moved while any figure mode is on (e.g. zoom). When turning off the mode, the WindowButtonUpFcn of the devider is restored instead of the user-defined callback function.
* nice to have: height and width limits and maybe other constraints for flexible containers. Perhaps one can adopt some ideas from another nice layout manager: GridBagLayout. Thanks to OOP I'm of course free to do this by subclassing, but maybe the feature finds its way into the uiextras toolbox.
29 Dec 2010
A MATLAB class which controls layout and resize of a figure/uipanel/uicontainer.
Somehow the code seems to not always work when I run .m file. I built a GUI with a pushbutton and a edit box. If i press the pushbutton i can chose data such as .txt and .csv files and write the first 20 lines in the edit box. However, sometimes, when loding the same files (what I get when I load them is also identical, so it should not be my data loading function), there is a horizonal scrollbar and sometimes there is not. The follwoing I wrote in the GUI opening function:
jScrollPane = findjobj(handles.edit1);
jViewPort = jScrollPane.getViewport;
jEditbox = jViewPort.getComponent(0);
Do you have any idea? Is there a bug or is it just me (more likely XD)
I use findjobj to add icon on multiples Button and use Progressbar...but when i run the Gui, it open and close ( flasjing)at each "findobject" call.
then works fine... any idea what's going on ?
jButton = java(findjobj(handles.Apply, 'nomenu'));
myIcon = fullfile(currentDir,'/icons/apply.png');