<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>I didn't know.. but using the same handle for the console and the root window is very misleading to me. Scilab is full of misleading stuff like this...</div><div><br></div><div>S.</div><div><br>Le 5 déc. 2016 à 13:05, Samuel Gougeon <<a href="mailto:sgougeon@free.fr">sgougeon@free.fr</a>> a écrit :<br><br></div><blockquote type="cite"><div>
  

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  
  
    Hello Stéphane,<br>
    <br>
    <blockquote type="cite">
      <div class="moz-forward-container"><br>
        -------- Message transféré --------
        <table class="moz-email-headers-table" border="0" cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Sujet :
              </th>
              <td>Re: [Scilab-users] How to remove all the figure in a
                single instruction</td>
            </tr>
            <tr>
              <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date :
              </th>
              <td>Mon, 5 Dec 2016 12:28:19 +0100</td>
            </tr>
            <tr>
              <th nowrap="nowrap" valign="BASELINE" align="RIGHT">De : </th>
              <td>Stéphane Mottelet<br>
              </td>
            </tr>
            <tr>
              <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Pour :
              </th>
              <td>Users mailing list for Scilab
                <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.scilab.org"><users@lists.scilab.org></a></td>
            </tr>
          </tbody>
        </table>
        <br>
        <pre>Sorry, Denis was faster than me... Btw, the graphical objects hierachy 
is missing a root window object, i.e. something that would allow :

-->rw=get("root_window")
 rw  =

Handle of type "Root" with properties:
========================================
children: ["Figure","Figure"]

and later

-->delete(get(rw,"children"))</pre>
      </div>
    </blockquote>
    <br>
    I am sorry, but what would be the interest of such a syntax compared
    to the existing xdel(winsid())?<br>
    <br>
    <b>The root object already exists. It somehow represents the screen</b>:<br>
    <br>
    <small><tt>-->get(0)</tt><tt><br>
      </tt><tt> ans  =</tt><tt><br>
      </tt><tt> </tt><tt><br>
      </tt><tt>Handle of type "Console" with properties:</tt><tt><br>
      </tt><tt>=========================================</tt><tt><br>
      </tt><tt>Children: "uimenu"</tt><tt><br>
      </tt><tt>ShowHiddenHandles = "off"</tt><tt><br>
      </tt><tt>ShowHiddenProperties = "off"</tt><tt><br>
      </tt><tt>UseDeprecatedSkin = "off"</tt><tt><br>
        <br>
      </tt><tt>-->uman root_properties al</tt><tt><br>
      </tt><tt>=====================================================================================</tt><tt><br>
      </tt><tt> </tt><tt><br>
      </tt><tt>Scilab > GUI > root_properties</tt><tt><br>
      </tt><tt>..............................</tt><tt><br>
      </tt><tt> </tt><tt><br>
      </tt><tt>root_properties - description of the root object
        properties.</tt><tt><br>
      </tt><tt> </tt><tt><br>
      </tt><tt>Description</tt><tt><br>
      </tt><tt>-----------</tt><tt><br>
      </tt><tt> The root object is a virtual object used to get the
        computer screen properties. Use</tt><tt><br>
      </tt><tt> get function with 0 as first argument to access its
        properties.</tt><tt><br>
      </tt><tt>  Root properties : </tt><tt><br>
      </tt><tt>        screensize_px : The screen size in pixels.</tt><tt><br>
      </tt><tt>        screensize_pt : The screen size in points.</tt><tt><br>
      </tt><tt>        screensize_mm : The screen size in millimeters.</tt><tt><br>
      </tt><tt>        screensize_cm : The screen size in centimeters.</tt><tt><br>
      </tt><tt>        screensize_in : The screen size in inches.</tt><tt><br>
      </tt><tt>        screensize_norm : The normalized screen size.</tt><tt><br>
      </tt><tt>        screendepth : The number of bits used to encode
        colors.</tt><tt><br>
      </tt><tt> </tt><tt><br>
      </tt><tt>Examples</tt><tt><br>
      </tt><tt>--------</tt><tt><br>
      </tt><tt> get(0, "screensize_px")</tt><tt><br>
      </tt><tt> get(0, "screendepth")</tt><tt><br>
      </tt><tt> </tt><tt><br>
      </tt><tt>See Also</tt><tt><br>
      </tt><tt>--------</tt><tt><br>
      </tt><tt>  get — Retrieve a property value from a graphics entity
        or an User Interface object.</tt><tt><br>
      </tt></small> <br>
    <b>It is somewhat completed by the getsystemmetrics() function</b>:<br>
    <a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.0.0/en_US/getsystemmetrics.html">https://help.scilab.org/docs/6.0.0/en_US/getsystemmetrics.html</a><br>
    <br>
    Samuel<br>
    <br>
  

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>users mailing list</span><br><span><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a></span><br><span><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a></span><br></div></blockquote></body></html>