I have an option style navigation btn (no submenus) on each cd of my
stack. As the user adds and names new cds to the stack, this btn's
contents is updated with the new name of each new cd.
The script:
on mouseUp
put the value of selectedline of cd btn "Go To" into gowhere
#lines here use the random function to generate a visual effect for the
cd transition**
go cd gowhere
end mouseUp
As soon as I add a different option btn (with submenus) with a menuPick
handler, the script above doesn't work (the value of selectedline of cd
btn "Go To" returns nothing) I know I could use a menuPick handler in
the "Go To" btn but when I do, **the visual effect on going to the
desired cd occurs twice.
The script in the 2nd option btn : (This 2nd option btn (with submenus)
is part of a group on the cd.)
on menuPick lookhow
set the itemDel to "|"
put item 2 of lookhow into lookhow # item 2 is the submenu item
if lookhow = "rectangle" then set the style of fld 1 of me to
rectangle
# many more if lookhow =
end menuPick
The script for this 2nd btn works flawlessly - it just won't allow my
navigation btn to operate. Why won't the two scripts co-exist?