Get text content from a GUI element
gettext control
Returns title or text content of a control.
Example:
"k := newarray 4
:k,1 := label "Label {10 10}
:k,2 := textbox "|text box| {80 10}
:k,3 := checkbox "Option {10 36}
:k,4 := slider "Slider {80 36}
foreach "c :k [print gettext :c]
Output:
(also GUI controls in the graphics window)
Label
text box
Option
Slider
See also:
Table of Content