This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
text_field [2020/12/02 18:48] – justin | text_field [2020/12/06 21:11] (current) – justin | ||
---|---|---|---|
Line 8: | Line 8: | ||
|{{: | |{{: | ||
|{{: | |{{: | ||
- | |{{: | + | |{{: |
|{{: | |{{: | ||
|{{: | |{{: | ||
=====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~~ |