Skip to content

Commit ae586ae

Browse files
committed
Added a note about support for uifigure "unlocking" in various releases
1 parent 76d8e70 commit ae586ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ mlapptools.textAlign(myGUI.TextArea, 'right');
392392

393393
This method modifies the properties of the UIFigure controller such that opening the UIFigure in a browser (using the webwindow URL) becomes possible. This method has no effect on MATLAB releases before R2017b (where no such restriction exists in the first place).
394394

395+
_NOTE:_ this method works as expected in releases ≤R2018a. In newer releases, the unlocked figure can only be viewed in the built-in web browser using `web(hWW.URL,'-new')`. This way one can view the source code of the webpage (useful to examine the DOM's hierarchy etc.), but not modify it (by editing the nodes manually or issuing console commands).
396+
395397
##### Examples
396398

397399
Using the demo GUI generated by `./Demo/DOMdemoGUI.m`
@@ -408,7 +410,8 @@ web(hWW.URL,'-browser'); pause(3);
408410
mlapptools.unlockUIFig(myGUI.UIFigure);
409411
410412
% Attempt to open again:
411-
web(hWW.URL,'-browser');
413+
web(hWW.URL,'-browser'); % Works on R2016a-R2018a
414+
web(hWW.URL,'-new'); % Works on all releases (probably)
412415
```
413416
The 1<sup>st</sup> browser window should be empty, whereas the 2<sup>nd</sup> should correctly show the contents of the UIFigure.
414417

0 commit comments

Comments
 (0)