Alberto Iglesias Well-Known Member Licensed User Longtime User May 8, 2019 #1 Hello, When the object HUD is in the main page works fine, but when trying to show in another page is not showing (is like working behind this page) event if this object is created on the second page https://www.b4x.com/android/forum/threads/ihud-library-toast-messages-and-progress-dialogs.46103/ Question: Have some way to put this progress on top of pages? Thanks Alberto
Hello, When the object HUD is in the main page works fine, but when trying to show in another page is not showing (is like working behind this page) event if this object is created on the second page https://www.b4x.com/android/forum/threads/ihud-library-toast-messages-and-progress-dialogs.46103/ Question: Have some way to put this progress on top of pages? Thanks Alberto
Erel B4X founder Staff member Licensed User Longtime User May 9, 2019 #2 I'm unable to reproduce it. Please upload a small project that demonstrates it. Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User May 9, 2019 #3 This is one simple sample to reproduce! Please check the attachment. Note for replicate this error, I use your recommended code to show the page Code: Dim no As NativeObject = Parent no.RunMethod("presentViewController:animated:completion:", Array(dialog, True, Null)) Attachments TestHud.zip TestHud.zip 3.4 KB · Views: 612 Last edited: May 9, 2019 Upvote 0
This is one simple sample to reproduce! Please check the attachment. Note for replicate this error, I use your recommended code to show the page Code: Dim no As NativeObject = Parent no.RunMethod("presentViewController:animated:completion:", Array(dialog, True, Null))
Semen Matusovskiy Well-Known Member Licensed User May 9, 2019 #4 It seems to me that a problem not in HUD as it is, but in program architecture. If I understood correctly, you try to show a message from invisible module. IMO, it's necessary to place "message show" subroutine in each visible page, and invisible module will call corresponding subroutine depends on currently visible page. Attachments test.zip test.zip 4 KB · Views: 654 Upvote 0
It seems to me that a problem not in HUD as it is, but in program architecture. If I understood correctly, you try to show a message from invisible module. IMO, it's necessary to place "message show" subroutine in each visible page, and invisible module will call corresponding subroutine depends on currently visible page.
Alberto Iglesias Well-Known Member Licensed User Longtime User May 9, 2019 #5 Yes, I understand that, I will replace presentviewcontroller method by navcontrol I just follow the tip from @Erel post on this link https://www.b4x.com/android/forum/threads/show-second-page-like-popup-animation.65638/#post-415743 But have this restrictions and I will not use anymore. Thanks Alberto Iglesias Upvote 0
Yes, I understand that, I will replace presentviewcontroller method by navcontrol I just follow the tip from @Erel post on this link https://www.b4x.com/android/forum/threads/show-second-page-like-popup-animation.65638/#post-415743 But have this restrictions and I will not use anymore. Thanks Alberto Iglesias
Semen Matusovskiy Well-Known Member Licensed User May 10, 2019 #6 https://www.b4x.com/android/forum/threads/show-second-page-like-popup-animation.65638/#post-415743 is ordinary animation effect. Guess, B4I does not understand that this code changes visible page. Meanwhile there are another possible effects - see https://www.b4x.com/android/forum/threads/showpage-animated.87495/#post-553596 I changed ShowPage to ShowPage3 in my sample. HUD works fine. Upvote 0
https://www.b4x.com/android/forum/threads/show-second-page-like-popup-animation.65638/#post-415743 is ordinary animation effect. Guess, B4I does not understand that this code changes visible page. Meanwhile there are another possible effects - see https://www.b4x.com/android/forum/threads/showpage-animated.87495/#post-553596 I changed ShowPage to ShowPage3 in my sample. HUD works fine.