Browse Source

PopupMenu: Minor documentation fix

tags/2021-05-28
hogliux 8 years ago
parent
commit
2fbbb59fef
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_basics/menus/juce_PopupMenu.h

+ 4
- 0
modules/juce_gui_basics/menus/juce_PopupMenu.h View File

@@ -280,6 +280,8 @@ public:
This will add a user-defined component to use as a menu item. The component
passed in will be deleted by this menu when it's no longer needed.
Note that native macOS menus do not support custom components.
@see CustomComponent
*/
void addCustomItem (int itemResultID,
@@ -296,6 +298,8 @@ public:
detection of a mouse-click on your component, and use that to trigger the
menu ID specified in itemResultID. If this is false, the menu item can't
be triggered, so itemResultID is not used.
Note that native macOS menus do support custom components.
*/
void addCustomItem (int itemResultID,
Component* customComponent,


Loading…
Cancel
Save