StackOverflowMATLABchat / mlapptools

MATLAB class containing methods for programmatic uifigure modification
http://undocumentedmatlab.com/blog/customizing-uifigures-part-2
MIT License
25 stars 11 forks source link

Expanded public API and added support for uitabgroup and uitab #13

Closed Dev-iL closed 6 years ago

Dev-iL commented 6 years ago

Exciting changes, no doubt :)

davidn-IA commented 6 years ago

Fantastic addition indeed, as has been the case with all the recent changes. Any thoughts on getting rid of the bit of border leftover here? (not sure it's something we'd need, but playing around with a "clean" look...). Also bits of border hang around when tabs are transparent.

image

tg = uitabgroup(uifigure()); uitab(tg); [win, widgetID] = mlapptools.getWebElements(tg); [childIDs] = mlapptools.getChildNodeIDs(win, widgetID); mlapptools.setStyle(win,'background','transparent',childIDs(2)); mlapptools.setStyle(tg,'border-style','none'); [childIDs] = mlapptools.getChildNodeIDs(win, childIDs(2)); mlapptools.setStyle(win,'background','green',childIDs(4));

(W10, 2017b)

Dev-iL commented 6 years ago

@davidn-IA you should set the border-top of the tab (<div> with id=uniqName_106_0Wrapper) to none.

[win, widgetID] = mlapptools.getWebElements(tg);
[childIDs] = mlapptools.getChildNodeIDs(win, widgetID);
mlapptools.setStyle(win,'border-top','none',childIDs(1));