Popcolor: Distinguish between click event and set method

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

Popcolor: Distinguish between click event and set method

Post by Clyde » Fri Jun 14, 2019 10:34 pm

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 7.1 with Windows IDE

User avatar
Clyde
Posts: 151
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: Popcolor: Distinguish between click event and set method

Post by Clyde » Fri Jun 14, 2019 10:41 pm

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 7.1 with Windows IDE

User avatar
airsoftsoftwair
Posts: 3022
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popcolor: Distinguish between click event and set method

Post by airsoftsoftwair » Sun Jun 16, 2019 11:34 am

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