Re: [Scilab-users] root object: get(0)

2016-12-05 Thread Stéphane Mottelet

Le 05/12/2016 à 13:50, Samuel Gougeon a écrit :

Le 05/12/2016 13:15, Stéphane Mottelet a écrit :
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...


Right. Already, this get(0) object is named "Console" while its 
available properties are all about the screen device ;)

IMO,
Thank you Samuel. This is necessary to be stringent about this kind of 
stuff. Scilab is suffering of this kind of approximative "modeling" 
since the migration old graphics->new graphics. But who cares ? Most of 
us are handymen and sometimes propose working-but-incoherent stuff which 
is nevertheless validated by SE. This is a pity...


S.



  * the true root should rather be either the screen or the IDE or the
"system" as addressed with getsystemmetrics(). In all cases, the
"Console" would already be one of its children.
  * the true console properties would rather be:
  o its sizes : lines(),
  o its background color
  o its font_family
  o its font_color
  o its font_size
  o its menus
  o its toolbar status
  o its toolbar contents, one child per tool:
  + icon
  + callback
  o the text of its status bar
  o ...


A short dream during the nap:

  * rename the get(0) object "System" (likely in %h_p())
  * make all properties addressed with getsystemmetrics() properties
of get(0)

SG



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Département de Génie Informatique
EA 4297 Transformations Intégrées de la Matière Renouvelable
Université de Technologie de Compiègne -  CS 60319
60203 Compiègne cedex

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] root object: get(0)

2016-12-05 Thread Samuel Gougeon

Le 05/12/2016 13:50, Samuel Gougeon a écrit :

Le 05/12/2016 13:15, Stéphane Mottelet a écrit :
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...


Right. Already, this get(0) object is named "Console" while its 
available properties are all about the screen device ;)
My fault: i am mixing "Console properties" with "Root properties" (=> 
screen parameters)

But there are 2 different help pages for the same get(0) object...
https://help.scilab.org/docs/6.0.0/en_US/console_properties.html
https://help.scilab.org/docs/6.0.0/en_US/root_properties.html

* The display of get(0) could be extended to read-only root_properties
* The root_property page could be merged in the Console_properties one.

SG

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] root object: get(0)

2016-12-05 Thread Samuel Gougeon

Le 05/12/2016 13:15, Stéphane Mottelet a écrit :
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...


Right. Already, this get(0) object is named "Console" while its 
available properties are all about the screen device ;)

IMO,

 * the true root should rather be either the screen or the IDE or the
   "system" as addressed with getsystemmetrics(). In all cases, the
   "Console" would already be one of its children.
 * the true console properties would rather be:
 o its sizes : lines(),
 o its background color
 o its font_family
 o its font_color
 o its font_size
 o its menus
 o its toolbar status
 o its toolbar contents, one child per tool:
 + icon
 + callback
 o the text of its status bar
 o ...


A short dream during the nap:

 * rename the get(0) object "System" (likely in %h_p())
 * make all properties addressed with getsystemmetrics() properties of
   get(0)

SG

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] root object: get(0)

2016-12-05 Thread Stéphane Mottelet
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...

S.

> Le 5 déc. 2016 à 13:05, Samuel Gougeon  a écrit :
> 
> Hello Stéphane,
> 
>> 
>>  Message transféré  
>> Sujet :  Re: [Scilab-users] How to remove all the figure in a single 
>> instruction
>> Date :   Mon, 5 Dec 2016 12:28:19 +0100
>> De : Stéphane Mottelet
>> Pour :   Users mailing list for Scilab 
>> 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"))
> 
> I am sorry, but what would be the interest of such a syntax compared to the 
> existing xdel(winsid())?
> 
> The root object already exists. It somehow represents the screen:
> 
> -->get(0)
>  ans  =
>  
> Handle of type "Console" with properties:
> =
> Children: "uimenu"
> ShowHiddenHandles = "off"
> ShowHiddenProperties = "off"
> UseDeprecatedSkin = "off"
> 
> -->uman root_properties al
> =
>  
> Scilab > GUI > root_properties
> ..
>  
> root_properties - description of the root object properties.
>  
> Description
> ---
>  The root object is a virtual object used to get the computer screen 
> properties. Use
>  get function with 0 as first argument to access its properties.
>   Root properties : 
> screensize_px : The screen size in pixels.
> screensize_pt : The screen size in points.
> screensize_mm : The screen size in millimeters.
> screensize_cm : The screen size in centimeters.
> screensize_in : The screen size in inches.
> screensize_norm : The normalized screen size.
> screendepth : The number of bits used to encode colors.
>  
> Examples
> 
>  get(0, "screensize_px")
>  get(0, "screendepth")
>  
> See Also
> 
>   get — Retrieve a property value from a graphics entity or an User Interface 
> object.
>  
> It is somewhat completed by the getsystemmetrics() function:
> https://help.scilab.org/docs/6.0.0/en_US/getsystemmetrics.html
> 
> Samuel
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] root object: get(0)

2016-12-05 Thread Samuel Gougeon

Hello Stéphane,



 Message transféré 
Sujet : 	Re: [Scilab-users] How to remove all the figure in a single 
instruction

Date :  Mon, 5 Dec 2016 12:28:19 +0100
De :Stéphane Mottelet
Pour :  Users mailing list for Scilab 


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"))


I am sorry, but what would be the interest of such a syntax compared to 
the existing xdel(winsid())?


*The root object already exists. It somehow represents the screen*:

-->get(0)
 ans  =

Handle of type "Console" with properties:
=
Children: "uimenu"
ShowHiddenHandles = "off"
ShowHiddenProperties = "off"
UseDeprecatedSkin = "off"

-->uman root_properties al
=

Scilab > GUI > root_properties
..

root_properties - description of the root object properties.

Description
---
 The root object is a virtual object used to get the computer screen 
properties. Use

 get function with 0 as first argument to access its properties.
  Root properties :
screensize_px : The screen size in pixels.
screensize_pt : The screen size in points.
screensize_mm : The screen size in millimeters.
screensize_cm : The screen size in centimeters.
screensize_in : The screen size in inches.
screensize_norm : The normalized screen size.
screendepth : The number of bits used to encode colors.

Examples

 get(0, "screensize_px")
 get(0, "screendepth")

See Also

  get — Retrieve a property value from a graphics entity or an User 
Interface object.


*It is somewhat completed by the getsystemmetrics() function*:
https://help.scilab.org/docs/6.0.0/en_US/getsystemmetrics.html

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread Stéphane Mottelet
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"))

S.


Le 05/12/2016 à 12:07, CRETE Denis a écrit :

Hello,
xdel(winsid())

HTH
Denis

[@@ THALES GROUP INTERNAL @@]

Unité Mixte de Physique CNRS / THALES
1 Avenue Augustin Fresnel
91767 Palaiseau CEDEx - France
Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78
e-mail :
  denis.cr...@thalesgroup.com 
  http://www.trt.thalesgroup.com/ump-cnrs-thales
  http://www.research.thalesgroup.com


-Message d'origine-
De : users [mailto:users-boun...@lists.scilab.org] De la part de 
paul.carr...@free.fr
Envoyé : lundi 5 décembre 2016 12:06
À : users@lists.scilab.org
Objet : [Scilab-users] How to remove all the figure in a single instruction

Hi All

To remove all the figures in a single instruction, I'm using Xdel keyword; for example, 
"xdel(1:10)" for the figure 1 to 10.

Nevertheless if I manually remove one of them in the meantime, it does not work 
anymore.

Is there another way to proceed?


Nota bene: I tried something like "xdel(1:$)" but it does not work -> would 
such way be interesting?

Paul
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Département de Génie Informatique
EA 4297 Transformations Intégrées de la Matière Renouvelable
Université de Technologie de Compiègne -  CS 60319
60203 Compiègne cedex

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread paul . carrico

thanks all - works fine

Paul

Le 2016-12-05 12:07, CRETE Denis a écrit :

Hello,
xdel(winsid())

HTH
Denis

[@@ THALES GROUP INTERNAL @@]

Unité Mixte de Physique CNRS / THALES
1 Avenue Augustin Fresnel
91767 Palaiseau CEDEx - France
Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78
e-mail :
 denis.cr...@thalesgroup.com 
 http://www.trt.thalesgroup.com/ump-cnrs-thales
 http://www.research.thalesgroup.com


-Message d'origine-
De : users [mailto:users-boun...@lists.scilab.org] De la part de
paul.carr...@free.fr
Envoyé : lundi 5 décembre 2016 12:06
À : users@lists.scilab.org
Objet : [Scilab-users] How to remove all the figure in a single 
instruction


Hi All

To remove all the figures in a single instruction, I'm using Xdel
keyword; for example, "xdel(1:10)" for the figure 1 to 10.

Nevertheless if I manually remove one of them in the meantime, it does
not work anymore.

Is there another way to proceed?


Nota bene: I tried something like "xdel(1:$)" but it does not work ->
would such way be interesting?

Paul
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread Stéphane Mottelet

xdel(winsid())

will do the trick !

S.

Le 05/12/2016 à 12:06, paul.carr...@free.fr a écrit :

Hi All

To remove all the figures in a single instruction, I'm using Xdel 
keyword; for example, "xdel(1:10)" for the figure 1 to 10.


Nevertheless if I manually remove one of them in the meantime, it does 
not work anymore.


Is there another way to proceed?


Nota bene: I tried something like "xdel(1:$)" but it does not work -> 
would such way be interesting?


Paul
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



--
Département de Génie Informatique
EA 4297 Transformations Intégrées de la Matière Renouvelable
Université de Technologie de Compiègne -  CS 60319
60203 Compiègne cedex

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread CRETE Denis
Hello,
xdel(winsid())

HTH
Denis

[@@ THALES GROUP INTERNAL @@]

Unité Mixte de Physique CNRS / THALES
1 Avenue Augustin Fresnel
91767 Palaiseau CEDEx - France
Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 
e-mail : 
 denis.cr...@thalesgroup.com 
 http://www.trt.thalesgroup.com/ump-cnrs-thales
 http://www.research.thalesgroup.com


-Message d'origine-
De : users [mailto:users-boun...@lists.scilab.org] De la part de 
paul.carr...@free.fr
Envoyé : lundi 5 décembre 2016 12:06
À : users@lists.scilab.org
Objet : [Scilab-users] How to remove all the figure in a single instruction

Hi All

To remove all the figures in a single instruction, I'm using Xdel keyword; for 
example, "xdel(1:10)" for the figure 1 to 10.

Nevertheless if I manually remove one of them in the meantime, it does not work 
anymore.

Is there another way to proceed?


Nota bene: I tried something like "xdel(1:$)" but it does not work -> would 
such way be interesting?

Paul
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] How to remove all the figure in a single instruction

2016-12-05 Thread paul . carrico

Hi All

To remove all the figures in a single instruction, I'm using Xdel 
keyword; for example, "xdel(1:10)" for the figure 1 to 10.


Nevertheless if I manually remove one of them in the meantime, it does 
not work anymore.


Is there another way to proceed?


Nota bene: I tried something like "xdel(1:$)" but it does not work -> 
would such way be interesting?


Paul
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users