AROS MUIRoyale Strings

Find quick help here to get you started with Hollywood
Post Reply
NathanH
Posts: 128
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

AROS MUIRoyale Strings

Post 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
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: AROS MUIRoyale Strings

Post 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.
NathanH
Posts: 128
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Re: AROS MUIRoyale Strings

Post 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
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: AROS MUIRoyale Strings

Post 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"})
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: AROS MUIRoyale Strings

Post by jPV »

Fixed:

Code: Select all

p_EventFunc({Action="MUIRoyale", Class="String", ID="mystring", Attribute="Acknowledge", TriggerValue="bla"})
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: AROS MUIRoyale Strings

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