Home › Forums › General › Programming › Get “label” from popup submenu item › Reply To: Get “label” from popup submenu item
July 1, 2020 at 1:23 am
#118997
if ret == 0 then -- the selected index of the popup
return
end
panel:getLabel("lblPrstUA"):setText(lookup[ret]))
The way I do this in the ctrlr.org/c-plg150-an/ panel, which has many examples of this, is refer back to a lookup table of names.
lookup={
"Small room verb",
"plate reverb",
"large hall",
...
}
- This reply was modified 3 years, 10 months ago by dnaldoog.