Rank: 18391 based on 0 downloads (last 30 days) and 0 file submitted
photo

David Sampson

E-mail
Company/University
MathWorks
Lat/Long
52.22888946533203, 0.151883006095886

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by David View all
Updated File Comments Rating
07 Jul 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

There have been some discussion on this forum recently about GUI Layout Toolbox and R2014b, as there will be significant changes to MATLAB graphics in that release.
* The current public release of GUI Layout Toolbox is not compatible with R2014b.
* We will release an R2014b-compatible version of GUI Layout Toolbox on MATLAB Central at the time of product general release.
* A beta version for R2014b is currently being tested. If you need access during the R2014b prerelease period then please contact Ben and me by email with a brief description of your requirement.

12 Aug 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Sven, there is no plan to deprecate getappdata and setappdata. If you are seeing problems in the R2013b prerelease, please share reproduction steps, either directly with Ben and me, or on this forum.

10 Jun 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

We will release support for HG2 in due course.

09 Dec 2010 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

In response to the question about custom resize behavior, subclass our relevant class and implement your own resize method.

12 Aug 2010 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

In response to the question regarding sizes of panel decorations, first let me state the obvious, just in case it isn't obvious. Once a panel with a container inside is on screen, you can call getpixelposition on the panel and the container inside to find the size of the decorations.

The GUI Layout Toolbox takes an outside-in approach in that contents do not influence the size of a container. You give a container some space and it lays out the contents as best it can. If the contents are too big for the container then they just disappear to the top or the right. This is fundamental to how the Toolbox works.

I have been expecting a request to support minimum sizes for contents. Anyone interested in this could extend their container of choice by adding a property and overloading redraw. Care is required to react as children are added and removed; see how we handle 'Sizes' for guidance.

The next question that arises is how to establish the minimum reasonable size for each child. I recommend hard-coding. uicontrols do provide a property 'Extent', but it doesn't return anything useful for combo boxes, and it gives the wrong answer for normalized units, and neither containers nor axes report Extent.

It is possible to enforce limits on figure size by hooking into the figure ResizeFcn. I don't advise trying this below the figure level.

Contact us