Tab panels

dunbarx at dunbarx at
Fri Mar 25 17:57:54 EDT 2011

I have tried this in the tabmenu script:

on mouseUp
   if  the clickHistory of me = the menuhistory of me then send menupick && the clickhistory of me to me
    set the clickHistory of me to the menuhistory of me
end mouseUp

It checks to see if the same tab has been clicked by another route, mouseUp, instead of menuPick. If it is the same, it generates the menuPick message by hand.

Craig Newman

-----Original Message-----
From: J. Landman Gay <jacque at>
To: How to use LiveCode <use-livecode at>
Sent: Fri, Mar 25, 2011 1:47 pm
Subject: Re: Tab panels

On 3/25/11 12:11 PM, James Hurley wrote: 
> In summary, is there any way to force the tab panel to receive a second 
> menupick message when it is already selected? 
If the menuhistory doesn't change, the tab panel doesn't bother to update itself. You might be able to hack it with something like this: 
  -- assume tab button's history is currently at "1": 
  lock screen 
  lock messages 
  set the menuhistory of btn "tabpanel" to 2 
  unlock messages 
  set the menuhistory of btn "tabpanel" to 1 
  unlock screen 
Didn't try it though. 
-- Jacqueline Landman Gay         |     jacque at 
HyperActive Software           | 
use-livecode mailing list 
use-livecode at 
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 


More information about the Use-livecode mailing list