popUp a button with itself on modified mouseDown?

Dr. Hawkins dochawk at gmail.com
Mon Jun 30 11:48:37 EDT 2014


I'm trying to get a button to normally be a boring old popup, but allow
other things to be chosen by it.

The "natural" way would seem to to change it on mousenter if the specified
modifier key is down, or if the second button is clicked.

I get the change to happen trivially, but if I'm doing it from a mouseDown,
I can't get it to display itself.  I'm trying things like,

on mouseDown bt
   if bt=3 then
      popup  button the short name of the target
   end if
   pass mouseDown
end mouseDown

But I'm not finding a magic combnation
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the Use-livecode mailing list