Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Question] Non-detachable, non-closeable plugin widget? #8

Closed
osrf-migration opened this issue Oct 9, 2017 · 4 comments
Closed

[Question] Non-detachable, non-closeable plugin widget? #8

osrf-migration opened this issue Oct 9, 2017 · 4 comments
Labels

Comments

@osrf-migration
Copy link

Original report (archived issue) by Andrés Fortier (Bitbucket: andres_fortier).


I would like to create a layout that has a main widget (which is a plugin) that can't be detached nor closed, while leaving the rest of the widgets as they are by default (detachable and closeable). Is that possible? I'm ok if that requires either changing the code in the plugin or in the app (or both).

@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


You can try adding <has_titlebar>false</has_titlebar> to your plugin's config. See this example.

Note that all plugins also come with a context menu (right-click) which has a close option. You can disable it by overriding Plugin::ShowContextMenu on your plugin as shown on this example.

Does that fit your needs?

@osrf-migration
Copy link
Author

Original comment by Andrés Fortier (Bitbucket: andres_fortier).


That worked like a charm, thanks @chapulina! (and I will take a closer look to the examples next time, my bad :/)

Marking this one as done.

@osrf-migration
Copy link
Author

Original comment by Andrés Fortier (Bitbucket: andres_fortier).


  • changed state from "new" to "resolved"

@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Glad to hear it works for you. Questions are welcome, the documentation is pretty minimal at this point ;)

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

No branches or pull requests

1 participant