Hi
Is there any way to activate a text entry widget (Textentry class) via the Hollywood script to allow the user to enter text?
For example, I want to prompt the user first for the name, evaluate the input, clear the input in the widget and activate it again for the age prompt.
Griessli
Tipsi
Activate a text entry widget
-
- Posts: 475
- Joined: Fri May 15, 2015 5:15 pm
- Location: Waterville, Minnesota USA
Re: Activate a text entry widget
Have you considered using a page gadget to switch to an identical text entry gadget? That way the second gadget could validate numbers only instead of trying to do it with one gadget.
I'm on registered MorphOS using FlowStudio.
Re: Activate a text entry widget
Use the ActiveObject attribute of the Window class. Setting ActiveObject will activate the widget specified.
Re: Activate a text entry widget
@mrupp
Yes, that is exactly what I was looking for. Thanks.
@SamuraiCrow
Thanks for your tip about the second field for numbers. I will include that (without the page) as well.
Griessli
Tipsi
Yes, that is exactly what I was looking for. Thanks.
@SamuraiCrow
Thanks for your tip about the second field for numbers. I will include that (without the page) as well.
Griessli
Tipsi