I’m looking to construct a dialog (text edit) box that I can re-use between different text widgets to edit the text of those widgets. I so far can’t find a way to write the text back to the correct widget. I need a widget reference I think in a global variable. But also I could be wrong about my approach. Approach:
- Each widget I want to ‘edit’ either has a raised event or normal onClick event that sets the text on the textfield to This.text and opens the dialog as a layer (sort of normal CMS behavior)
- I would like to store the identity of This widget but can’t find the means to do it…
3.I edit the text in the textarea field of the dialog - Submitting the text would set the text on the original This widget to the text in the textarea field.
It’s like I need a global variable of type ‘widget’ to access the methods of widgets.