Search Comments and Ratings

go

   
Date File Comment by Comment Rating
28 Nov 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs, for the new graphics system introduced in R2014b Author: David Sampson Yannick

Hi David,

How would you copy uix objects into new figures ?

I tried "copyobj" but the children/contents do not behave well in the copied objects.

Is there an easy trick ?

Thanks!

5
17 Nov 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman

Yair Altman (view profile)

Yannick

5 more stars from me as it now works perfect in 2014b !

5
14 Nov 2014 ScreenCapture - get a screen-capture of a figure frame or component ScreenCapture gets a screen-capture of any Matlab GUI handle, or specified screen area rectangle Author: Yair Altman

Yair Altman (view profile)

Yannick

It worked perfect until 2014b.

Now if I do :
"peaks, imdata=screencapture(gcf); imshow(imdata)"
All I get is a black image.
What's the trick for the latest release ?

5
19 Sep 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff (view profile)

Yannick

Hi,

Just repeating myself at that point but I see it has not been fixed in the latest update...

In order not to have the childs of collapsed box panels show up on the rest of your GUI, you need to change lines 368 to 371 of Container.m to :

if position(3)<=0 || position(4)<=0
% Not enough space, so move offscreen instead
position = [-10000 -10000 10 10];
end

4
21 May 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff (view profile)

Yannick

Hi Ben, David,

I am having issues with the latest release and changing the limits of axes with patches objects in them.

if you do :
f=figure
b=uiextras.VBox('Parent', f)
a1=axes('Parent',b)
a2=axes('Parent',b)
contourf(peaks)
set(a2, 'YLim', [10 30])

You will see the contours coming out of the axes onto the neighbouring elements.

Is there a way to get the axes to update itself correctly ?

Many thanks,
Yannick

5
29 Apr 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff (view profile)

Yannick

Ben,

I actually had to change line 334 of Container.m to "position = [-10000 -10000 100 100];".

It seems 10/10 width/height was crashing the wiggle axes functions by giving <0 size to the axes contained in my box panels.

Comment only
29 Apr 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff (view profile)

Yannick

Thanks Ben, I like to remove both borders for a more minimalist look. When I don't need the extra functionality I replace the BoxPanel by a VBox with two elements which allows me to have no borders.

Comment only
24 Apr 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff (view profile)

Yannick

I found a line was missing for the background color of the dock buttons in BoxPanel.m :

Adding the following at line 251 fixes it:

if isfield( obj.HGWidgets_, 'DockButton') set( obj.HGWidgets_.DockButton,'BackgroundColor', value );
end

Comment only
24 Apr 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff (view profile)

Yannick

Hi, is there a list of the default properties you can set ?

DefaultBoxPanelShadowColor does not seem to work for me ?

Is there also a way to remove the border of the BoxPanel's ?

Cheers,
Yannick

5

Contact us