I'm late to this discussion but here's what I do. It's a modular solution,
and I use it a lot. It's great for contextual menus for right-clicking in a
field (customize the button contents depending on context) and I've often
used it for just what you are doing, to offer a popup list on
Thanks Peter. Very handy.
-= Mike
On Jul 2, 2014, at 8:16 AM, Peter Brigham pmb...@gmail.com wrote:
I'm late to this discussion but here's what I do. It's a modular solution,
and I use it a lot. It's great for contextual menus for right-clicking in a
field (customize the button contents
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
If your script is in a PopUp Menu button then it's probably just getting
confused trying to pop up itself!
Maybe try something like this in a PopUp Menu ensuring that the
menuMouseButton prop is set to 1…
local sModKey
on mouseDown
--ShiftKey check
if the shiftKey is down then
put
On 6/30/2014, 10:48 AM, Dr. Hawkins wrote:
I'm trying to get a button to normally be a boring old popup, but allow
other things to be chosen by it.
I'm confused about what you want to do. But if my guess is right, you
want to change the button's menu content on a mouseDown.
--
Jacqueline
On Mon, Jun 30, 2014 at 12:02 PM, J. Landman Gay jac...@hyperactivesw.com
wrote:
I'm confused about what you want to do. But if my guess is right, you want
to change the button's menu content on a mouseDown.
I want the button to normally be a plain old boring standard button. I
want to make
Take a look at the button style, menumode and general appearance properties. I
would think that you could dynamicly change the style and menu mode and general
appearance. Just a thought….
-= Mike
On Jun 30, 2014, at 6:25 PM, Dr. Hawkins doch...@gmail.com wrote:
On Mon, Jun 30, 2014 at
On Mon, Jun 30, 2014 at 4:17 PM, Michael Doub miked...@gmail.com wrote:
Take a look at the button style, menumode and general appearance
properties. I would think that you could dynamicly change the style and
menu mode and general appearance. Just a thought….
Within limits, it does that
From your example above, you're having the button try to pop itself up.
Thats the only case where you probably don't want to manually popup
button..
The key is to check the conditions, have other popup buttons with your
context menus set up, and if the conditions are met, then popup button
create a popup button
move it to -100,-100
create your standard visible button with the following script:
on mousedown thebutton
popup button x
else
beep
end if
end mousedown
Does this do what you want?
-= Mike
On Jun 30, 2014, at 7:19 PM, Dr. Hawkins doch...@gmail.com
10 matches
Mail list logo