Popup menu bug?

Josep jmyepes at mac.com
Wed Jun 3 02:51:25 EDT 2009


Hello Jaqueline,

So, from the button search mouseup I call "on search" and from menu pick
call "on markOption", isn't?

Every control call custom handler that share some local variables.
Maybe this is best that every control have her code, with this way is more
easy of mantain the code, but is good for performance of the app?


Salut,
Josep

local sMenuChoice -- this goes at the top of the script

on markOption pMenuChoice -- option_button calls this
  put pMenuChoice into sMenuChoice -- store it in the script local
  -- set checkmark here if you want
end markOption

on search -- search button calls this
  put sMenuChoice into tSearchTerm
  -- etc
end search

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



-- 
View this message in context: http://www.nabble.com/Popup-menu-bug--tp23814764p23846318.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list