Scilab Website | Contribute with GitLab | Scilab Community | ATOMS toolboxes
Scilab Online Help
2027.0.0 - English


Root properties

Description of root object properties.

Description

The Root entity is a virtual graphical object which is the top level of the graphics entities hierarchy. It is used to modify some general properties for handles and uicontrols and to get the computer screen properties. Its properties may be addressed through its handle as returned by get(0).

Properties which can be modified are the following:

ShowHiddenHandles

A boolean or a string

Manages the display of all children handles in figures including default menus ones.

Default value is "off".

UseDeprecatedSkin

A boolean or a string

Manages the rendering of uicontrols.

Default value is "off" and uicontrols look and feel is managed by operating system.

Setting this value to "on" or %T will make the uicontrols have an old TK look and feel.

ShowHiddenProperties

A boolean or a string

Manages the display of uicontrols properties.

Default value is "off" and only the uicontrols properties used on the Java side are displayed.

Setting this value to "on" or %T will make all available properties displayed (for example a ListboxTop property will be displayed for pushbutton uicontrols.

Units

A string among "points", "normalized", "inches", "centimeters" or "pixels".

Default value is "pixels".

Userdata

Any data of any type, that you want to assign to the root entity.

Tag

Single string, that can be used as a root custom text id.

Read-only properties are:

pointer_location

The coordinates of mouse pointer in current units.

screensize

The screen size in current units.

screendepth

The number of bits used to encode colors.

Examples

f = gcf() // Do no display hidden handles
r = get(0);
r.ShowHiddenHandles = "on";
f = gcf() // Show menu handles as children

h = uicontrol(); // Button with OS look & feel
r.UseDeprecatedSkin = "on"
h = uicontrol(); // Button with old TK look & feel

h = uicontrol() // Minimal display of properties
r.ShowHiddenProperties = "on"
h = uicontrol() // Full display of properties
get(0, "screensize")
get(0, "screendepth")
get(0, "Units")
set(0, "Units", "centimeters")

See also

Report an issue
<< progressionbar GUI saveGui >>

Copyright (c) 2022-2026 (Dassault Systèmes S.E.)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 15 10:21:22 CEST 2026