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

Jingjing Bao

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Jingjing View all
Updated File Comments Rating
12 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Thanks, Ben. I didn't know the setappdata/getappdata pair, so I actually wrote one myself as a function, just adding my var to myhandles and attach to the figure handle. It worked fine for me so far :).

10 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben, Thanks for the reply. I was trying to do this:
hf=figure;
bp = uiextras.BoxPanel('Parent',hf,...
'Tag','boxpanel');
bp.Title = 'Original Title';
hobj=findobj(hf,'Tag','boxpanel');
hobj.Title='New Title';

The objective is to be able to modify the title in a callback. I thought I could use the handle returned by findobj with tag string, but that handle seems not working. I think it due to the fact that the handle returned by findobj is the handle to the container of the composite GUI object, so it's not directly related to the title banner. Now I use guidata to save the actual handle of the boxpanel, then retrieve it inside the callback, and it works fine.
I don't know how difficult it is to modify the layout toolbox source code to make this happen, I will spend sometime look it up after finishing current task.
Thanks again for sharing a great GUI tool.

09 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

One of the best!
I have one question related to the BoxPanel, I was trying to modify the 'Title' through hobj.Title='new Title', but it doesn't work. Is there a way to accomplish this? Thanks!

09 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

06 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Contact us