Tab panels

dunbarx at aol.com dunbarx at aol.com
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 hyperactivesw.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
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 hyperactivesw.com 
HyperActive Software           |     http://www.hyperactivesw.com 
 
_______________________________________________ 
use-livecode mailing list 
use-livecode at lists.runrev.com 
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
http://lists.runrev.com/mailman/listinfo/use-livecode 

 



More information about the use-livecode mailing list