popUp a button with itself on modified mouseDown?

Michael Doub mikedoub at gmail.com
Mon Jun 30 19:36:28 EDT 2014


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 <dochawk at gmail.com> wrote:

> On Mon, Jun 30, 2014 at 4:17 PM, Michael Doub <mikedoub at 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 so far.
> 
> The code I have successfully changes the button type; my problem is getting
> the now-popup to pop.
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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