setting menuHistory by script not working

dunbarx at aol.com dunbarx at aol.com
Thu Nov 29 19:23:34 EST 2012


Terry.


What do you mean when you say "set by script"? In a handler in a button?



on mouseUp

  set the menuHistory of btn "yourOptionButton" to random(3)


end mouseUp


This works fine.


Write back.


Craig Newman


-----Original Message-----
From: Terry Judd <terry.judd at unimelb.edu.au>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Thu, Nov 29, 2012 7:02 pm
Subject: Re: setting menuHistory by script not working



On 30/11/2012, at 10:45 AM, Terry Judd wrote:

> I'm trying to make 'preset' selections from a series of option menus by 
setting their menuHistory in a script.
> 
> If I set the menuHistory from the message box it works just fine, but if do it 
from a script it fails - at least until I switch to another window, at which 
point the option menus suddenly update to their correct value (LC 5.5.3 OSX). 
Same result with the IDE active and suspended.
> 
> Does anyone know what's up with this?

For now I'm using a hack that opens and closes an invisible window to force the 
menus to update, but even that doesn't work all of the time.

Terry...

> 
> Terry...
> 
> Dr Terry Judd
> Senior Lecturer in Medical Education
> Medical Eduction Unit
> Faculty of Medicine, Dentistry & Health Sciences
> The University of Melbourne
> 
> 
> 
> _______________________________________________
> 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
> 

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne





_______________________________________________
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