Re: menuHistory & menuPick

2017-08-06 Thread hh via use-livecode
The following recipe is for use in LC 7/8/9. In LC 6 setting the label sets also the menuhistory. Delete your "set menuhistory line" and add the following to the script of your button 1: on mouseDown set the menuhistory of me to lineoffset(the label of me, me) end mouseDown > jbv wrote: > I

Re: menuHistory & menuPick

2017-08-05 Thread jbv via use-livecode
On Sat, August 5, 2017 2:52 pm, Klaus major-k via use-livecode wrote: > >> Am 05.08.2017 um 14:15 schrieb jbv via use-livecode >> : >> >> >> well, not exactly... > > But it answered exactly your initial question, Sir! > > >> here's the thing : I have a hidden option

Re: menuHistory & menuPick

2017-08-05 Thread Klaus major-k via use-livecode
> Am 05.08.2017 um 14:15 schrieb jbv via use-livecode > : > > well, not exactly... But it answered exactly your initial question, Sir! > here's the thing : I have a hidden option button with several choices : > choice1 > choice2 > choice2 > > At some point

Re: menuHistory & menuPick

2017-08-05 Thread jbv via use-livecode
well, not exactly... here's the thing : I have a hidden option button with several choices : choice1 choice2 choice2 At some point the content of the btn gets updated and it becomes visible with the following script : put "choice4" & return & "choice5" & return & "choice6" into btn 1

Re: menuHistory & menuPick

2017-08-05 Thread Klaus major-k via use-livecode
> Am 04.08.2017 um 23:27 schrieb Bob Sneidar via use-livecode > : > > 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.

Re: menuHistory & menuPick

2017-08-04 Thread Craig Newman via use-livecode
o: How to use LiveCode <use-livecode@lists.runrev.com> Cc: jbv <j...@souslelogo.com> Sent: Fri, Aug 4, 2017 2:04 pm Subject: menuHistory & menuPick 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

Re: menuHistory & menuPick

2017-08-04 Thread Bob Sneidar via use-livecode
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

Re: menuHistory & menuPick

2017-08-04 Thread Klaus major-k via use-livecode
> Am 04.08.2017 um 20:35 schrieb jbv via use-livecode > : > > Hi Klaus > Thanks for the reply. > Actually that option crossed my mind, but what if other useful messages > need to be sent in the meantime, or if there are any pending messages ? Then the world, as

Re: menuHistory & menuPick

2017-08-04 Thread jbv via use-livecode
Hi Klaus Thanks for the reply. Actually that option crossed my mind, but what if other useful messages need to be sent in the meantime, or if there are any pending messages ? What gets blocked actually ? Thanks jbv On Fri, August 4, 2017 8:07 pm, Klaus major-k via use-livecode wrote: > Hi jbv, >

Re: menuHistory & menuPick

2017-08-04 Thread Klaus major-k via use-livecode
Hi jbv, > Am 04.08.2017 um 20:04 schrieb jbv via use-livecode > : > > 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

menuHistory & menuPick

2017-08-04 Thread jbv via use-livecode
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