Popcolor: Distinguish between click event and set method

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
Clyde
Posts: 349
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Popcolor: Distinguish between click event and set method

Post 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?
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
User avatar
Clyde
Posts: 349
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: Popcolor: Distinguish between click event and set method

Post 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?
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popcolor: Distinguish between click event and set method

Post 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 :)
Post Reply