Reply To: Get “label” from popup submenu item

Home Forums General Programming Get “label” from popup submenu item Reply To: Get “label” from popup submenu item

#118997
dnaldoog
Participant
  • Topics: 4
  • Replies: 480
  • Total: 484
  • ★★
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 6 months, 2 weeks ago by dnaldoog.
Do NOT follow this link or you will be banned from the site!