Open Proxoso opened 6 years ago
This is likely version specific, the issue does not occur in R2017b.
@Proxoso While we're adding a warning or a workaround for older versions, you can use the setStyle
syntax, which should work :
myGUI = DOMdemoGUI;
[hWin, widgetID] = mlapptools.getWebElements(myGUI.TextArea);
mlapptools.setStyle(hWin, 'color', 'aqua', widgetID);
@Dev-iL - if you look at the error stack provided by @Proxoso , you'll see that it stems from mlapptools.fontColor
:69 -
[win, ID_struct] = mlapptools.getWebElements(uiElement);
which indicates that your suggested workaround will also fail, because getWebElements
fails.
My hunch is that it's due to a slow rendering, which means the timeout is reached before the widgetID is available.
Expected Behavior
Change color from TextArea font to 'aqua'
Actual Behavior
If changing line 434 from:
ww = arrayfun(@mlapptools.getWebWindow, hUIFigs);
toww = arrayfun(@mlapptools.getWebWindow, hUIFigs, 'un',0);
following error occurs:
Steps to Reproduce the Problem
Enter this command in the Matlab Command Line (or any other command from the examples):
Specifications