1
get Fractales Group Scilab Function get
3
get - Retrieve a property value from an User Interface object.
9
o h : integer the handle of the object to retrieve a property
11
o Bprop : character string name of the property
13
o val : scilab object value of the property
16
This routine can be used to retrieve a specified property from a GUI
17
object. Property name are character strings like 'style', 'position'
18
.... This routine returns the value associated to the specified property.
19
Obviously, the type of the returned object depends on the property one
20
aims at querying. For example, the 'style' property which represents the
21
kind of Object the UI control is (ie button, label, list, ..... ) will be
22
represented as a string. On the contrary, the 'position' property, which
23
represents the geometrical aspect of the UI control, will be coded as a
27
h=uicontrol('string', 'Button');
28
// Opens a window with a button.
30
// get the geometric qspect of the button
31
disp('Button width: ' + string(p(3)));
32
// print the width of the button
36
uicontrol, uimenu, set