Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

uipushtool not shown correctly when the State is 'on' and figure is on focus

2 visualizzazioni (ultimi 30 giorni)
Hi,
I'm running R2019a on a Mac, and I've detected that the uipushtool icons in a figure do not appear shadowed when they are in 'On' state when the figure is on focus. I've written a small script to describe the problem:
fh = figure();
b = uitoolbar(fh);
a = rand(8,8,3);
htt = uitoggletool(b,'CData',a,'TooltipString','Hello');
htt.State = 'on';
fh.Name = 'So, the pushtool is not shadowed... but way three seconds...';
pause(3);
newFigure = figure();
fh.Name = '.... now it IS shadowed, as the focus is transferred to another figure';
newFigure.Name = 'I am the figure under focus... look at the pushtool in the other figure!';
Is there a (lower level) way to enforce that the icon of the uitoggletool appears correctly shadowed when the state is 'On'?

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by