menuHistory & menuPick

jbv jbv at souslelogo.com
Sat Aug 5 09:00:29 EDT 2017


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
>> <use-livecode at lists.runrev.com>:
>>
>>
>> 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 updated and it becomes
>> visible with the following script : put "choice4" & return & "choice5" &
>> return & "choice6" into btn 1 set label of btn 1 to line 2 of btn 1 set
>> menuhistory of btn 1 to 2
>>
>> The purpose of the "menuhistory" line is, when user press the btn,
>> to have all the choices "centered around" the visible one on the label,
>> which is more elegant imho...
>
> Well, this is a completely different situation and I am a bit clueless.
> Now do you want to execute the menupick handler or not?
>

Nope, I want to bypass the menupick message.
Your suggestion to block messages would block all messages, not just
menupick.
As mentioned in my original post, I managed to do it with a boolean variable.
I was just wondering about the availability of a more elegant solution, using
LC built-in features for instance...
Best regards






More information about the Use-livecode mailing list