This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
text_field [2020/12/02 18:48] – justin | text_field [2020/12/02 18:49] – justin | ||
---|---|---|---|
Line 13: | Line 13: | ||
=====Scripting===== | =====Scripting===== | ||
- | You can access and change certain properties of a text field from within a [[script]] by simply referencing the parent [[widget]] and the element by their unique IDs. See below for an example | + | You can access and change certain properties of a text field from within a [[script]] by simply referencing the parent [[widget]] and the element by their unique IDs. See below for examples |
- | **Changing a button's text:** | + | **Changing a field's text:** |
<code bauxite> | <code bauxite> | ||
widget[" | widget[" | ||
+ | </ | ||
+ | |||
+ | **Storing a field' | ||
+ | <code bauxite> | ||
+ | $name = widget[" | ||
+ | display_message(" | ||
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |