5.0

5.0 | 4 ratings Rate this file 37 downloads (last 30 days) File Size: 11.41 KB File ID: #19257

guipanel

by Dan Cohn

 

18 Mar 2008 (Updated 19 Mar 2008)

No BSD License  

Creates dynamically moveable and resizeable uipanels – uses almost identical syntax to uipanel.

Download Now | Watch this File

File Information
Description

Create truly dynamic GUI's using guipanel -- guipanel's are interactively resizeable and moveable. Panels can be nested and if desired, locked to a location. The calling syntax is almost identical to that of MATLAB's builtin uipanel. Additionally, you can pass-in uicontrol property param/values inside a structure.

objectHandle = guipanel(handle, 'Param', 'Value',...)
objectHandle = guipanel(uiStruct)
[objectHandle,fcnHandles] = guipanel(...)

fcnHandles is a structure of function handles useful in the manipulation of guipanel's:
Root2Fig
Parent2Child
MakeEpsilon
MakeRect
SyncUnits
UnSyncUnits
OverlappingAt

**UICONTROLS/TOGGLEBUTTONS parented to guipanels might stack incorrectly if those are overlapping**

One last acknowledgement -- I realize that this could be coded much more elegantly and powerfully with MATLAB's R2008 OOP tools -- which I'll do when I have more time.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
19 Mar 2008 Nathan Danneman

Nicely done!

19 Mar 2008 Thorsten Nowack

Very useful, thank you!

30 Mar 2008 e c

very impressive!

21 Aug 2009 Jveer

love it! cheers

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Dan Cohn 22 Oct 2008 09:54:10
example Dan Cohn 22 Oct 2008 09:54:10
gui Dan Cohn 22 Oct 2008 09:54:10
dynamic Dan Cohn 22 Oct 2008 09:54:10
move Dan Cohn 22 Oct 2008 09:54:10
resize Dan Cohn 22 Oct 2008 09:54:10
uipanel Dan Cohn 22 Oct 2008 09:54:10
handle graphics Dan Cohn 22 Oct 2008 09:54:10
nested function Dan Cohn 22 Oct 2008 09:54:10
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com