Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PopupMenu: Add Item tooltipText #1521

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zsliu98
Copy link

@zsliu98 zsliu98 commented Mar 7, 2025

See:

https://forum.juce.com/t/how-to-put-a-tooltip-for-a-popupmenu-item/54529

For now, it is impossible to add a tooltip for each item of a PopupMenu without a complex implementation of CustomComponent. Now we can add it by setting tooltipText of an Item. Example:

const auto menu = comboBox.getRootMenu();
juce::PopupMenu::Item item;
item.itemID = 1;
item.text = "text";
item.tooltipText = "tooltip text";
item.isEnabled = true;
item.isTicked = false;
menu->addItem(item);

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant