Set Focus on Kinetic-Message-Handler

I have a question on the Kinetic-Message-Handler component in App Studio.

I’ve added a button to ABCCode that triggers a kinetic-Message-Handler component (type slideout, buttons yes/no). The slideout’s focus defaults to the “Yes” button which is quite convenient - unless you want the default to be “No”, as in our case.

Does anyone know how to set the focus on this component? Is it possible?

1 Like

Does the property-set widget give you access to the default?

I looked at that and the Control-Focus-Set widget, based on other conversations here on EpiUsers. Thank goodness for @hmwillett 's compendium, but I can find no documentation for these controls/widgets.
Are you aware of a resource that would shed light on how they might be implemented?

Nope. Not with the message widget.

Since you’re using a slide-out message handler, you could probably get hacky. You could try making a dedicated slide-out with your message and buttons (manually added) and use the control-focus that way.
The issue with trying to do that with the message widget is while it’s open, no other events fire until after it’s closed.

2 Likes

Thanks Hannah. That’s what I suspected. So, I’ll create my own override message event - display the slideout, set focus, then, process the button click response. I appreciate the response!

Ehh, I’ve been playing with this and having little success.
I still think that may be the way to go, but the focus is still being stubborn.

Right, I glossed right over the “the problem with that…” part!!! ughhh!
I’ll play with it and see what happens.

Got it.

You’ll have to put your own buttons on the slider instead of using the page button, but then you can create an event that fires on the “No” button’s OnCreate event and call the property-set:

4 Likes

Brilliant! Thanks!

2 Likes