vorticreations.blogg.se

Layouteditor set cell hierarchy
Layouteditor set cell hierarchy








They work ok on Matlab versions 7.1 (R14 SP3) through 7.6 (R2008a), and perhaps on other versions as well. They depend heavily on Matlab’s internal implementation, which may change without any prior notice between Matlab releases. Warning: These undocumented features are way deep in unsupported territory. Have you discovered other undocumented features in GUIDE? If so, please share your findings in the comments section below. LayoutToolNames – boolean, controls display of tool names in the components palette.LayoutToolBar – boolean, controls display of the GUIDE widow toolbar.LayoutMCodeComments – boolean, controls generation of comments for m-file callbacks.LayoutFullPath – boolean, controls display of file path in the GUIDE window title.

layouteditor set cell hierarchy

  • LayoutExtension – boolean, controls display of file extension in the GUIDE window title.
  • LayoutExport – boolean, controls ability to export unsaved figures without confirmation.
  • LayoutChangeDefaultCallback – boolean, ? (I can see this preference in my matlab.prf file but I have no idea what it does or how it got there…).
  • LayoutActivate – boolean, controls ability to run (activate) unsaved figures without confirmation.
  • LayoutSnapToGrid – boolean, controls snap-to-grid behavior.
  • LayoutGridWidth – integer, controls the size of the grid boxes.
  • LayoutShowGrid – boolean, controls display of gray gridlines.
  • LayoutShowGuides – boolean, controls display of blue guidelines.
  • LayoutShowRulers – boolean, controls display of both rulers.
  • Here is a list of all the GUIDE-related system properties that I found: Note: unfortunately, most of these properties do not have equivalent settable system properties that I could find. In GUIDE, we naturally wish to display the Matlab coordinates, hence the transformation. This is done because Java coordinates start counting from the top-left corner downward, whereas Matlab counts from the bottom-left upward. Note that the vertical ruler’s labels start (=LabelStart property) at the figure’s height, and have a decreasing LabelInterval of -50. Set(hRuler, 'LabelInterval',50, 'LabelUnit',50) Set(hRuler, 'MinorInterval',5, 'MajorInterval',25) HRuler = h.getComponent(0).getComponent(4) % =top horizontal ruler Set (hRuler, 'LabelInterval', 50, 'LabelUnit', 50 ) getComponent ( 4 ) % =top horizontal ruler set (hRuler, 'MinorInterval', 5, 'MajorInterval', 25 )

    layouteditor set cell hierarchy

    Once we set this property, it remains in effect for every future GUIDE session: If we turn it on we can see that a very handy pixels-ruler appears. Looking at the ruler properties in FindJObj or UIInspect, we can see a settable boolean property called “RulerState”.

    layouteditor set cell hierarchy

    These rulers can be activated via the GUIDE menu (Tools / Grid and Rulers), or via the Matlab Command Prompt as described below: We see that the Layout Editor contains, in addition to the expected LayoutArea and two MWScrollbars, several objects that relate to a ruler. Note: If you wish to see the hierarchy of the entire GUIDE figure frame, simply run FindJObj on the frame reference, by either of the two following methods (and similarly for UIInspect): > findjobj(h.getFrame) Hierarchy of Layout Editor within the GUIDE frame We can start by inspecting the interesting GUIDE layout hierarchy using my FindJObj utility, and the associated properties and method using my UIInspect utility: > h.findjobj This return handle can be used to access GUIDE components and functionality. The starting point is GUIDE’s undocumented return value, which is a Java reference to the Layout Editor panel within the GUIDE figure frame: > h = guideĬlass .guide.LayoutEditor In this post, I will show a few undocumented customizations that could help make GUIDE sessions more productive. Nevertheless, GUIDE is the tool used by most Matlab developers when designing GUIs. It is very handy for designing simple GUI figures, although my experience has shown that it has limitations for complex GUIs. GUIDE is the acronym for Matlab’s Graphical User Interface Design Editor.










    Layouteditor set cell hierarchy