Bug? B4i Issue: <view>.Visible = True Fails After <view>.SetVisibleAnimated(<duration>, False)

b4x-de

Active Member
Licensed User
Longtime User
I’ve encountered an issue in B4i when changing the visibility of views after using SetVisibleAnimated. When a view (i.e. Panel1) is hidden with Panel1.As(B4XView).SetVisibleAnimated(Duration, False), it cannot be made visible again using the standard Panel1.Visible = True property. Even calling Panel1.Visible = True followed by SetVisibleAnimated(0, True) does not restore visibility. Only a direct call to SetVisibleAnimated(0, True) works. Example scenarios:

Scenario 1 (does not work – panel stays invisible):

B4X:
Panel1.As(B4XView).SetVisibleAnimated(500, False)
Sleep(600)
Panel1.Visible = True

Scenario 2 (does not work – panel stays invisible):

B4X:
Panel1.As(B4XView).SetVisibleAnimated(500, False)
Sleep(600)
Panel1.Visible = True
Panel1.As(B4XView).SetVisibleAnimated(0, True)

Scenario 3 (works – panel becomes visible):

B4X:
Panel1.As(B4XView).SetVisibleAnimated(500, False)
Sleep(600)
Panel1.As(B4XView).SetVisibleAnimated(0, True)

This behavior happens in B4i only; the exact same code works correctly in B4A.
 

Sandman

Expert
Licensed User
Longtime User
I reported this two years ago and was under the impression that it was solved a long time ago. Do you use the latest version of B4i?

 

b4x-de

Active Member
Licensed User
Longtime User
I'm still using B4i Version 8.90 (from May 2025) because I'm currently not able to upgrade to Version 10.00. But Erel fixed it in Jun 2024 already?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…