<div dir="ltr">OK, thank you.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-12 11:03 GMT+01:00 Antoine Monmayrant <span dir="ltr"><<a href="mailto:amonmayr@laas.fr" target="_blank">amonmayr@laas.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Le Vendredi 12 Février 2016 09:21 CET, Philipp Mühlmann <<a href="mailto:p.muehlmann@gmail.com">p.muehlmann@gmail.com</a>> a écrit:<br>
<br>
> Can anyone please explain in more detail - than given in the help - the<br>
> purpose of the uicontrol layer-style?<br>
><br>
> How would one use this?<br>
><br>
> Could one put several layer one over each other?<br>
<br>
Short answer: I don't think so.<br>
<br>
Longer answer: I found some info on the layers in the unit tests:<br>
<br>
function layer = create_layer(count)<br>
    c = get(0);c.usedeprecatedskin = "off"<br>
    f = figure("dockable", "off" ,"infobar_visible", "off", "toolbar_visible", "off", "menubar_visible", "off", "layout", "border")<br>
    f.figure_size = [300, 300];<br>
<br>
    //layer<br>
    layer = uicontrol(f, "style", "layer", "constraints", createConstraints("border", "center"));<br>
<br>
    for i = 1:count<br>
        fr1 = uicontrol(layer, "style", "frame");<br>
        fr1.layout_options = createLayoutOptions("border", [10, 10]);<br>
        fr1.layout = "border";<br>
        uicontrol(fr1, "string", "button " + string(i) + "1", "constraints", createConstraints("border", "top"));<br>
        uicontrol(fr1, "string", "button " + string(i) + "2", "constraints", createConstraints("border", "left"));<br>
        uicontrol(fr1, "string", "button " + string(i) + "3", "constraints", createConstraints("border", "center"));<br>
        uicontrol(fr1, "string", "button " + string(i) + "4", "constraints", createConstraints("border", "bottom"));<br>
        uicontrol(fr1, "string", "button " + string(i) + "5", "constraints", createConstraints("border", "right"));<br>
    end<br>
endfunction<br>
<br>
<br>
What you can do with this function:<br>
<br>
ll=createlayer(3).<br>
<br>
ll.value=1; //figure shows the 4 buttons you put in the 1st layer<br>
ll.value=2; // now figure shows the 4 buttons you put in the 2nd layer<br>
ll.value=3; // now figure shows the 4 buttons you put in the 3rd layer<br>
<br>
<br>
This is how I understand the usage of such layer uicontrol: use a layer for each user interface you want (like one with a graph taking up all the figure size, one with parameter boxes, one with loading data infos, ...) then use the layer.value=i to show quickly the ith bit of the interface you want.<br>
 If I'm correct, this is just like a tab uicontrol, minus the tab at the top!<br>
<br>
Antoine<br>
<br>
><br>
> Example:<br>
><br>
> 1st layer:    Image<br>
><br>
> 2nd layer:   plot of a function?<br>
><br>
> result:  plot over an Background Image<br>
><br>
><br>
> BR<br>
> Philipp<br>
><br>
><br>
> --<br>
> There we have the salad.<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">There we have the salad.</div>
</div>