popup command cross-platform

Jeff Massung massung at gmail.com
Thu Mar 4 17:59:46 EST 2010


So, I'm seeing different functionality w/ the popup command on OS X and
Win32, wondering if I should mark this as a bug, and also wondering if
anyone has a work-around?

-- in a field's script
on mouseUp
   set the backgroundColor of me to "black"
   popup btn "some menu"
   set the backgroundColor of me to "white"
end mouseUp

On Mac OS X this will set the backgruond color black, popup the menu, and
wait for me to "cancel" the popup or click a menu item in it, and then set
the background color back to white. On Win32 the field goes black -> white
instantly and the popup is still there.

I much prefer the OS X implementation (given this single context and what I
want to have happen), but I understand the advantages of the Win32
implementation. So if it's a bug, I could care less which version was
considered "correct" by RunRev, but them being different I consider
incorrect behavior.

That said, anyone have a workaround for me?

Jeff M.



More information about the use-livecode mailing list