I would like to use a drop down menu style control that allows multiple selections. Is there a control that allows this? I've tried all of the 'menu' controls and none seem to be able to do this?
Thank you,
Jon

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseDown
put the fontNames into me
sort lines of me ascending international
end mouseDown
on menuPick XXX
put 1 into LYNE
repeat until LYNE > 1000000
if line LYNE of fld "MyFontz" is empty then
put XXX into line LYNE of fld "MyFontz"
put 1000005 into LYNE
else
add 1 to LYNE
end if
end repeat
end menuPick
Code: Select all
on menupick xxx
if fld "YourFonz" = EMPTY then
put xxx into fld "YourFonz"
else
put CR & xxx AFTER fld "YourFonz"
end if
end menupick
I HIGHLY doubt that!richmond62 wrote: ↑Thu Mar 11, 2021 8:19 pmYour code may be shorter, but it may also be more difficult for other coders to "unpack".
John Stuart Mill may have said to Herbert Spencer,I HIGHLY doubt that!
how does this present a multi-line selectable list of menuItems?on menupick xxx
if fld "YourFonz" = EMPTY then
put xxx into fld "YourFonz"
else
put CR & xxx AFTER fld "YourFonz"
end if
end menupick
It doesn't.how does this present a multi-line selectable list of menuItems?
Wait.....what?richmond62 wrote: ↑Thu Mar 11, 2021 10:12 pmIt doesn't.how does this present a multi-line selectable list of menuItems?
But the OP did not ask for that as far as I can see.
What I believe (and the OP should feel 100% free to correct me if I'm wrong)
is that the OP wanted the ability to make several selections from a drop-down menu.
My code (and Klaus's) allows an end-user to make multiple selections which are then stored in a listField.
Having the mulitple selections listed now allows them to be acted on.