- Enclose with " for exact match e.g., "uitable report"
- Advanced on-site Matlab training - amazing value
- AppDesigner’s mlapp file format
- Customizing axes part 5 – origin crossover and labels
- Customizing uifigures part 1
- Listbox selection hacks
- A few parfor tips
- Handling red Java console errors
- MEX ctrl-c interrupt
- Figure window customizations
- rmfield performance
- Viewing saved profiling results
- Transparent labels
- Setting class property types – take 2
- Smart listbox & editbox scrollbars
- Faster findjobj
- Adding a search box to figure toolbar
- Desktop (39)
- Figure window (43)
- Guest bloggers (54)
- GUI (138)
- Handle graphics (74)
- Hidden property (39)
- Icons (7)
- Java (155)
- Listeners (20)
- Memory (14)
- Mex (11)
- Presumed future risk (334)
- Public presentation (3)
- Semi-documented feature (7)
- Semi-documented function (32)
- Stock Matlab function (124)
- Toolbox (5)
- UI controls (45)
- Uncategorized (12)
- Undocumented feature (174)
- Undocumented function (33)
TagsActiveX Callbacks COM Compiler Desktop Donn Shull Editor Figure FindJObj GUI GUIDE Handle graphics HG2 Hidden property HTML Icons Internal component Java JavaFrame JIDE JMI Listener Malcolm Lidierth MCOS Memory Menubar Mex Optical illusion Performance Profiler Pure Matlab schema schema.class schema.prop scribe Semi-documented function Toolbar uicontrol UIInspect uitable uitools uiundo Undocumented feature Undocumented function Undocumented property
- Donn Shull (11 hours 11 minutes ago): Hello Dave, I apologize for the lateness of the response. Somehow I missed your question when you first posted it. I hope you have found solutions to your problems. As far as I...
- Yair Altman (14 hours 37 minutes ago): @Meade – it’s not Matlab that ignores the align directive but rather the underlying Java Swing behavior, which snugly fits the text in the center of the button, and...
- Meade (16 hours 55 minutes ago): @Yair This is a great work-around! I’m guessing by your suggestion that Matlab doesn’t interpret any of the ‘align’ commands for text in naked Matlab...
- Meade (1 day 7 hours ago): Hi Yair, I’ve been using your excellent utility in a deployed toolbox for about a year now. Anyway, when I updated, I know get the following error Java exception occurred:...
- Yair Altman (1 day 20 hours ago): @Marconi – this has already been reported by others on this blog. Matlab’s print and saveas functions clear such transparencies, and there is no known workaround for...
- Marconi Barbosa (2 days 0 hours ago): Sweet. But when I try to print, Matlab2014b clears everything. I created events listeners for markers in both plot and legends. That works fine to rebuild after a click in...
- Yair Altman (3 days 8 hours ago): @oussama – read the post carefully. I showed how you can attach Matlab code to the label’s MouseClickedCallback property. You can attach any Matlab callback function...
- Yair Altman (3 days 8 hours ago): @Ed – I’m not exactly sure what you mean, but if you’re saying that you only have the class name and wish to avoid instantiating a class object, then you can...
- oussama (4 days 5 hours ago): hi, but how to connect the code with the label ??
- Edward Maros (4 days 9 hours ago): Correction. Using MATLAB, can I get the JAVA base class of my UDD based extension?
- Edward Maros (4 days 9 hours ago): Yair, If I need to use the java class directly, I need help on one other piece. My MATLAB class is derived from one of two java classes. This decision is made in the schema.m...
- Yair Altman (4 days 11 hours ago): @Ed – assuming your static constants are public (which they must be, otherwise you cannot use them in Matlab), you can simply use the classname: myField =...
- Edward Maros (4 days 11 hours ago): I have enjoyed this series and have found it to be very useful as I am creating a MATLAB wrapping of my java classes. The one question that I have concerns constants. My java...
- Karel Lebeda (5 days 12 hours ago): In my opinion, the difference between creating the gradient using patch is the following: – Patch uses the actual (Euclidean) distances for the interpolation....
- Yair Altman (7 days 11 hours ago): @Meade – You can use an HTML string such as this: pxPos = getpixelposition(hButton); hButton.String = ['text']; % button margins use 20px A better solution is to use the...
Search Results for: gui241 relevant articles found:
In my previous post, I explained how the findjobj utility can be used to access a Matlab component’s underlying Java component. Findjobj has another role: displaying the component hierarchy of complex Matlab containers such as the figure window, GUIDE or the Editor. When findjobj is called with no output arguments, the function infers that the user requests to see the GUI version, rather than to get the control’s Java handle: >&g… Continue reading
Last week I presented a detailed explanation of the uiinspect utility, which displays a GUI listing all the properties, callbacks and internal methods of an inspected object. Something like Matlab’s inspect tool on steroids. I explained that uiinspect uses com.mathworks.mlwidgets.inspector.PropertyView, which in turn uses JIDE’s PropertyTable. PropertyView automatically extracts the inspected object’s properties and displays th… Continue reading
…ccur within the specified number (e.g., fast double-clicks) will be considered by the component as only a single click. The default value of 0 means that all clicks will be processed separately, which is often undesirable in GUI applications. Remember that the value is in milliseconds, not seconds. FlyOverAppearance – boolean flag (default=false); if set, the button appearance is changed to a flat (2D) appearance with a special 3D border… Continue reading
…for example to create graphical insets. Multi-layered graphs, with each layer having independent axes. Figure 2: A multi-layered graph. Each plot has its own graph layer with independent axes. Built-in mouse interactivity and GUIs for interactive plot editing. Figure 3: A plot editor for a single-layered graph. Java programmers might note here the use of a few custom-designed Swing widgets: a dial that subclasses JSlider and supports multiple-tur… Continue reading
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
…available space for a new label. I could drive the entire content down to make space for it, but that would reduce the usable space for the actual contents, which is already at a premium: Adding a transparent label to Matlab GUI (click for full-size image) A natural place for the new label, as indicated, would be on top of the empty space next to the content’s sub-tabs (Correlation and Backtesting). This empty space is taken up by Matlab&#… Continue reading
Matlab includes a wide variety of internal widgets (GUI components) that could be very useful in our GUIs. One such widget is an animated spinning icon, which is often used by Matlab itself and numerous toolboxes to illustrate a running task: Sample usage of an animated spinning icon One of the internal widgets that are readily-available for use in our Matlab GUI and displays a similar (but not identical) spinning icon is BusyAffordance, which i… Continue reading
…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
A couple of weeks ago, a reader of this website requested an article about color-selection components. So Ed – this one’s for you Matlab includes a fully-documented uisetcolor function to enable color selection. uisetcolor uses a modal dialog window for this. To integrate this color-selection dialog in our GUI, simply add a uicontrol button or a menu item that call uisetcolor in their callback function. An example of such an integra… Continue reading