File: get.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (44 lines) | stat: -rw-r--r-- 1,358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

get(2)                         Scilab Function                         get(2)
NAME
  get - get an UI object property value

  Author: Bertrand Guiheneuf

  Retrieve a property value from an User Interface object.

Usage
  val=get(h,prop)

Input parameters

  o     h : integer the handle of the object to retrieve a property

  o     prop : character string name of the property

Output parameter

  o     val : scilab object value of the property

Description
  This routine can be used to retrieve a specified property from a GUI
  object. Property name are character strings like 'style', 'position' ....
  This routine returns the value associated to the specified property.  Obvi-
  ously, the type of the returned object depends on the property one aims at
  querying. For example, the 'style' property which represents the kind of
  Object the UI control is (ie button, label, list, ..... ) will be
  represented as a string. On the contrary, the 'position' property, which
  represents the geometrical aspect of the UI control, will be coded as a
  [1,4] vector.

EXAMPLE
  h=uicontrol('string', 'Button');
  // Opens a window with a  button.
  p=get(h,'position');
  // get the geometric qspect of the button
  disp('Button width: ' + string(p(3)));
  // print the width of the button
  close();
  // close figure
See also
  uicontrol, uimenu, set