Reply To: popup menu actions? (how?)

Home Forums General Programming popup menu actions? (how?) Reply To: popup menu actions? (how?)

#72843
human fly
Participant
    • Topics: 124
    • Replies: 1070
    • Total: 1194
    • ★★★★

    CORRECTION 😀
    it DOES work ! i had it completely wrong, for some reason,
    i see what you mean about the square brackets now. i must’ve
    copied it wrong.

    demo panel here:(popupwerk_v03.panel)
    https://app.box.com/s/3ari4lovw0h1lzp0ynezas9oci5ceynt

    this:(exactly as you showed in your post)

    -- Create menu items from the "itemNames" table
    	for itemIndex=1, #itemNames do
    	pMenu:addColouredItem(itemIndex, itemNames[itemIndex], Colour(0xff21c630), true, false, Image())
    	end

    then this:

    
    panel:getComponent("label_ToneNameDest"):setPropertyString("uiLabelText"," " .. (itemNames[ret]))

    it is a nice way to do a simple popup menu, as well – although
    i don’t know how one might do headers and submenus.

    now we just have to find out how to do all those other natty tricks
    with background colour/trnasparency etc. – i wonder if there are
    ways to adapt your code to work it in the ‘standard’ way of
    creating popups.

    • This reply was modified 6 years, 7 months ago by human fly. Reason: add demo file
    Ctrlr