<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Jens, <br>
<br>
Le 18/12/2016 15:31, Samuel Gougeon a écrit :<br>
</div>
<blockquote cite="mid:58569DCA.2000009@free.fr" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><br>
scf();<br>
param3d([0 1 1 1],[0 0 1 1],[0 0 0 1]);<br>
ce = <span style="text-decoration: underline;">gce</span>();<br>
ce.thickness = 10;<br>
m1 = uimenu('label', 'alpha=50', 'callback',"ca=gca();
ca.rotation_angles(1)=50");<br>
m2 = uimenu('label', 'alpha=80', 'callback',"ca=gca();
ca.rotation_angles(1)=80"); <br>
</div>
</blockquote>
<br>
At the time the menu is clicked, the current axes may be no longer
the one of the parent figure of the clicked component (menu). So
instead of ca = gca(), the callback should use gcbo for a more
robust implementation:
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.0.0/en_US/gcbo.html">https://help.scilab.org/docs/6.0.0/en_US/gcbo.html</a><br>
<br>
SG<br>
<br>
</body>
</html>