Page 1 of 1

AROS MUIRoyale Strings

Posted: Sat Jul 05, 2025 12:23 am
by NathanH
Hi,

I'm having problems with notification for AROS Zune string objects. I vaguely remember reading somewhere that the "Acknowledge" notification isn't sent when a CR is typed but that there was a way to monitor each key stroke made in the string gadget. I can't get any notifications at all though. I tried Notify="Pressed" and Notify="Acknowledge" but that doesn't send anything. Does anyone remember what to use to be notified of action in an AROS Zune string gadget? Thanks.

NathanH

Re: AROS MUIRoyale Strings

Posted: Sat Jul 05, 2025 6:05 am
by jPV
The String class doesn't have the "Pressed" attribute, but you can use "Contents" to get notifications every time the string contents change (keypresses).

I don't remember if that works on AROS or not, and don't have time to test now either. In any case, if you want these bugs in Zune corrected, let AROS developers (Deadwood last time I've checked) know about them.

Re: AROS MUIRoyale Strings

Posted: Sun Jul 06, 2025 4:57 pm
by NathanH
Thanks, that's it! I'm going to try listening for a CR keydown to emulate an acknowledgement notification. I wonder whether there is a way to insert a user-generated notification into the queue?

NathanH

Re: AROS MUIRoyale Strings

Posted: Mon Jul 07, 2025 3:39 pm
by jPV
I don't know if you could put something into the actual queue, but at least you can call your event handler function with a "fake" event.

Like this:

Code: Select all

p_EventFunc({Action=MUIRoyale, Class="String", ID="mystring", Attribute="Acknowledge", TriggerValue="bla"})

Re: AROS MUIRoyale Strings

Posted: Mon Jul 07, 2025 6:15 pm
by jPV
Fixed:

Code: Select all

p_EventFunc({Action="MUIRoyale", Class="String", ID="mystring", Attribute="Acknowledge", TriggerValue="bla"})

Re: AROS MUIRoyale Strings

Posted: Mon Jul 07, 2025 10:30 pm
by airsoftsoftwair
jPV wrote: Mon Jul 07, 2025 3:39 pm I don't know if you could put something into the actual queue
Yes, you can. Use the RunCallback() function for that.