B4J Question How to resize b4xdrawer using code?

eljare24

Member
Greetings!

How can I prevent the drawer from closing completely? I'm working in B4.

The menu contains icons and labels. I want it to close partially, leaving only the icons visible.

In short, I need to change the drawer's width to the mouse click width.

Thank you for your attention.
 

eljare24

Member
B4XDrawer was not designed for a use case where it is partially visible and kept open. It will interfere with the other UI elements. It will probably be better to use a regular panel for the "icons only" state.
Ok,

Thank you for your reply. I will try your suggestion.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Check this template.
Maybe it fits what you are looking for.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…