Activate a text entry widget

Discuss GUI programming with the RapaGUI plugin here
Post Reply
Tipsi
Posts: 21
Joined: Sun Feb 14, 2010 6:06 pm
Location: Switzerland

Activate a text entry widget

Post by Tipsi »

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
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Activate a text entry widget

Post by SamuraiCrow »

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. :idea:
I'm on registered MorphOS using FlowStudio.
User avatar
mrupp
Posts: 147
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland
Contact:

Re: Activate a text entry widget

Post by mrupp »

Use the ActiveObject attribute of the Window class. Setting ActiveObject will activate the widget specified.
Tipsi
Posts: 21
Joined: Sun Feb 14, 2010 6:06 pm
Location: Switzerland

Re: Activate a text entry widget

Post by Tipsi »

@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
Post Reply