You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Ultimately - I am considering two options in the future:
Get rid of WebPopOver and simply add all of it's functionality to WebPopup
Keep WebPopOver and allow it to be opened as frame/dialog/popup
Each 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.
The text was updated successfully, but these errors were encountered: