Open xcfdszzr opened 2 years ago
If you mean that you want the corner to be displayed for your popup
just like it is displayed for popupmenu
component - I'm afraid that will be hard to implement.
Popup component doesn't keep or track the component it was opened relative to unlike popup menu. To display such corner you would need that information and a custom painter for the component that will make use of it.
So my recommendation in this case - if you absolutely need that corner to be displayed - simply use popup menu with custom content, it is a completely valid use of popup menu (although a bit unconventional).
Alternatively - use WebPopOver
component, you can find a showcase for it in demo application:
The main difference between using popup menu and popover components would be that popover is basically a separate dialog that captures window focus, while popup menu is just a popup and it doesn't capture focus from your application window.
Thank you for your reply. I think I need to customize popup for this bug.
Ultimately - I am considering two options in the future:
WebPopOver
and simply add all of it's functionality to WebPopup
WebPopOver
and allow it to be opened as frame/dialog/popupEach solution has it's own pros and cons. Making WebPopup
have all the functionality might make it convoluted and hard to use in some cases and will make it hard to modify in the future. And making WebPopOver
have different display modes would introduce intersection between its functionality and WebPopup
functionality.