Page 1 of 1

Popcolor: Distinguish between click event and set method

Posted: Fri Jun 14, 2019 10:34 pm
by Clyde
I guess it is not possible yet and I assume it also relates to the other Pop* classes, but is it possible to distinguish, whether the color of the Popcolor picker (button) was set after opening the picker, select the color and click on ok (through "Notify") or when it is set through using

Code: Select all

moai.Set("colorpicker", "rgb", MYCOLOR)
?

If it not possible now, could you add this as a new feature, like extending the RapaGUI event data with a new property like "TriggeredBy" or so?

Re: Popcolor: Distinguish between click event and set method

Posted: Fri Jun 14, 2019 10:41 pm
by Clyde
Ok, I found a good workaround for my case using the "nonotify" flag when calling moai.Set().

But I think my wish can still be useful. What do you think?

Re: Popcolor: Distinguish between click event and set method

Posted: Sun Jun 16, 2019 11:34 am
by airsoftsoftwair
Clyde wrote: Fri Jun 14, 2019 10:41 pm But I think my wish can still be useful. What do you think?
Too much work for too little gain because it would have to be supported for all notifiable attributes then. Remember that RapaGUI on Amiga is just a thin layer above the MUI API so I'm trying to keeping it as MUI-esque as possible to make it easier to maintain the Amiga backend :)