B4A Library [B4X] AS FloatingPanel

Sandman

Expert
Licensed User
Longtime User
Oh right. Yeah, I'm not sure what the best solution is then. (I'll live, I use it without the arrow, just reported something i noticed.)
 

vascofire

Member
Hi, Alexander! I have a suggsetion.

Actual behavior:

The panel closes whenever it is clicked if CloseOnTap is set to true.
However, if it is set to false, even when calling Close from a view, like a button for instance, the panel cannot be closed.
I looked at the library code and found that the verification of the CloseOnTap condition is made inside the Close sub.

My suggestion:

What if the CloseOnTap condition was checked inside the panel's click event?
This way, if CloseOnTap is set to false but I want to close the panel from a button, the code wouldn't be interrupted by the following line:
B4X:
If m_CloseOnTap = False Then Return
I suggest this because I might have a layout where I don't want the panel to close accidentally when tapping outside of a view that I need to interact with.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.08
    • B4I Improvements - the entire screen is now used for the background shadow
      • When the navigation bar was hidden, there was an area at the top that did not go dark when the menu was opened
      • The height of the area is now determined and the gap closed
      • B4XPages is now required in B4I
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…