At 9:37 AM -0700 11/1/01, Tom wrote: >Hi, > >I'm new to Revolution, though I've used Hypercard, OMO & mTropolis for development. >I'm just hoping that Revolution/Metacard are not orphaned too someday. So, I just >started and Revolution looks very promising, however, the following script has had me >stuck for hours and it seems like it should work to create a button, set it to style >"menu", and then set an option for menu type, etc..etc. Why doesn't the script in >line 3 work? Is this a bug or am I missing something. It results in an error, but >the other button styles work. Also, in line 5..... 'set the menuMode of button "find >me" to option'.... should also work I think, but the button doesn't change as it does >if I substitute "combobox" for "option". Even with combobox in, the menu items don't >function because of the line 3 problem. Any help would be appreciated. Also, is >there a list of bugs out there? > >Thanks, > >Tom Seibert > >1 on MouseUp >2 create invisible button "find me" >3 set the style of button "find me" to menu >4 put "baking" & return & "cooking" into button "find me" >5 set the menuMode of button "find me" to option >6 set the loc of button "find me" to 120,200 >7 set the visible of button "find me" to true >8 end MouseUp
Revolution is more strict about quoting constants than HyperCard. This should work: on MouseUp create invisible button "find me" set the style of button "find me" to "menu" put "baking" & return & "cooking" into button "find me" set the menuMode of button "find me" to "option" set the loc of button "find me" to 120,200 set the visible of button "find me" to true end MouseUp
