is there a way to have a platform-native context m...
# compose-desktop
x
is there a way to have a platform-native context menu (right-click menu)?
something like on the right, that can render outside of the window
k
These two are separate concepts. Do you want a Compose pop-up that can go outside the window bounds or do you want to invoke a platform native pop-up?
x
I want the platform native pop-up
k
Then you'd need to find those platform-specific APIs for each platform and provide JNI bindings for them.
a
and how do you do the former?
k
What's the former? A Compose popup that goes outside the main window bounds?
a
Yes
k
You would use a
ComposeWindow
, configuring its size and position based on your content, your anchor location and the screen size.