Hi JB. To set the menu display value without triggering menuPick, set the label of the menu button. In order to trigger the menuPick handler when changing the value, use menuHistory. No need to suspend messages or anything fancy like that.
Bob S > On Aug 4, 2017, at 11:04 , jbv via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hi > According to the doc, when you set the menuHistory property, a menuPick > message is sent to the button. > I managed to block the menupick message with a boolean variable, but is > there an easier/more elegant way to momentary block that message when > setting menuhistory ? > > Thanks in advance. > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode