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 ha
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 button with several choices :
>
> 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 the content of the btn gets updat
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
set
> 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. No need to suspend messages or
: 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 message with a boolean variable, but is
there an easier/more elegant way to momentary block that mes
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-live
> 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 we know it, will END! :-D
> What
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,
>
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 easier/more elegant way to mome
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
___
11 matches
Mail list logo