Search Results for: gui

183 relevant articles found:

Solving a Matlab hang problem

…nity to explain the problem and the workaround, before my senility takes over and I forget again… The symptom – Matlab hangs The symptom is easily detectable: you’re happily working on your favorite Matlab GUI application, when suddenly some modal dialog window appears – perhaps a msgbox, a questdlg or an inputdlg. After clicking the <OK> button, Matlab seems to freeze, and any attempt to close the window or to sto… Continue reading

Categories: GUI, Low risk of breaking in future versions, Undocumented feature
Tags: , , ,
19 Comments

Advanced Matlab seminars – London, 10-14 March 2014

Advanced Matlab training courses/seminars will be held in London, March 10-14, 2014. Two separate courses will be held: Advanced Matlab Programming – 2 days (March 10-11), including best practices, preparing professional reports, writing professional code and performance tuning. US$1199 Advanced Matlab Visualization & GUI – 3 days (March 12-14), including advanced visualization and GUI techniques. US$1799 Enroll to both courses… Continue reading

Leave a comment

Uitable sorting

uitable is probably the most complex basic GUI controls available in Matlab. It displays data in a table within a figure, with settable properties as with any other Matlab Handle-Graphics (HG) control. After many years in which the uitable was available but semi-documented and not officially supported in Matlab, it finally became fully documented and supported in R2008a (aka Matlab 7.6). At that time its internal implementation has changed from… Continue reading

Categories: GUI, Handle graphics, Hidden property, High risk of breaking in future versions, Java, Semi-documented function, Stock Matlab function, Undocumented feature
Tags: , , , , , , , , ,
21 Comments

Uicontrol callbacks

…either directly or because its container was resized. ComponentShownCallback – fired when the component is displayed (setVisible(true)). Compare: ComponentHiddenCallback FocusGainedCallback – fired when the component gains GUI focus, by mouse click, Tab click, or calling the component’s requestFocus() method. FocusLostCallback – fired when the component loses focus to another component or window. Compare: FocusGainedCallback Hierarchy… Continue reading

Categories: GUI, Java, Low risk of breaking in future versions, UI controls
Tags: , , , , ,
45 Comments

Adding a context-menu to a uitree

…ssible to add uicontextmenus to uitree.
Your post saved my time.
Thanks a lot Scott Koch If you have access to the figure handle (stored as User Data for instance) you could also use the click event coordinates to display a GUIDE created context menu:

 ...
if eventData.isMetaDown
fh = get(hTree,'UserData');%Get figure handle
cm = findobj(fh,'tag','mycontextmenu');%Get context menu handle.
tpos = get(hTree,'Pixel... Continue reading

Categories: GUI, Java, Low risk of breaking in future versions, UI controls
Tags: , ,
27 Comments

Matlab layout managers: uicontainer and relatives

When designing Matlab applications, we can either use Matlab’s designer (guide), or manually position each GUI component programmatically, using its Position property. Matlab lacks the layout managers so common in Java, that enable easy relative component positioning, taking into account dynamic container size, components spacing weights etc. Of course, we can always trap the container’s ResizeFcn callback to update our layout, but d… Continue reading

Categories: GUI, Handle graphics, Low risk of breaking in future versions, Semi-documented function
Tags: , , , ,
14 Comments

Undocumented button highlighting

One of my consulting clients approached me yesterday with a mystery: In his GUIDE-generated GUI, one of the buttons had a bluish tint, and no obvious property seemed to control this or to differentiate it from its sibling controls. Here’s a parred-down version of his GUI: Highlighted GUI button So while it was very nice to have a highlighted button in this manner, the fact that he did not know why it happened and how to control it was a bi… Continue reading

Categories: GUI, Low risk of breaking in future versions, UI controls, Undocumented feature
Tags: , , , ,
Leave a comment

Using spinners in Matlab GUI

…to download this demo from the Matlab File Exchange and reuse its source code. Java’s SpinnerDemo    My Matlab SpinnerDemo As can be seen from the screenshot, SpinnerDemo also demonstrates how to attach a label to a GUI control with an associated accelerator key (Alt-D in the screenshot example, which sets the focus to the Date control). An internal component in Matlab, namely com.mathworks.mwswing.MJSpinner, extends javax.swing.JSpinne… Continue reading

Categories: GUI, Java, Low risk of breaking in future versions
Tags: , ,
4 Comments

Using JIDE combo-boxes

Continuing last week’s article on customized combo-boxes (a.k.a. popup menus or drop-downs), today I discuss how we can use JIDE‘s vast array of custom professional combo-boxes in our Matlab GUI. As I’ve already noted here in several articles, Matlab heavily uses JIDE’s library of GUI controls for its own GUI (Desktop, Editor etc.) and we can tap into this wealth of components in our own GUI. I’ve recently shown an… Continue reading

Categories: GUI, Java, Low risk of breaking in future versions
Tags: , ,
Leave a comment

GUI automation utilities

Once again, I welcome guest writer Takeshi (Kesh) Ikuma. Last week, Kesh described how Java’s Robot class can be used to automate Matlab GUI. Today, Kesh will describe two Matlab utilities that help this automation process. jMouseEmu and inputEmu are both available on the Matlab File Exchange. There is a large overlap between these utilities. As their name suggests, jMouseEmu is geared to control the mouse, while inputEmu emulates both mo… Continue reading

Categories: Figure window, Guest bloggers, GUI, Java, Low risk of breaking in future versions
Tags: , ,
3 Comments