Greetings, all.
My apologies for starting this new thread since I have a similar thread on this subject. I guess I was not clear in my previous thread on the subject.
PROBLEM
When I use Msgbox or Msgbox2, they do not behave as modal. If I click anywhere outside the Msgbox, the Msgbox disappears - thus, behavior is non-modal.
ILLUSTRATION
I wrote a small app to illustrate the issue and filmed (definitely not Oscar material, but there may be an award for worst film...). The youtube video shows the program execution first on a Nexus 10 V4.4.4 and second on an ASUS Memopad V4,2. In both tablets, the behavior of the Msgbox2 is not modal.
First, the video
Second, the code:
Any and all help will be truly welcomed.
Thank you.
Sandy
Original Thread:
http://www.b4x.com/android/forum/threads/msgbox-and-msgbox2-modal.44945/#post-275461
My apologies for starting this new thread since I have a similar thread on this subject. I guess I was not clear in my previous thread on the subject.
PROBLEM
When I use Msgbox or Msgbox2, they do not behave as modal. If I click anywhere outside the Msgbox, the Msgbox disappears - thus, behavior is non-modal.
ILLUSTRATION
I wrote a small app to illustrate the issue and filmed (definitely not Oscar material, but there may be an award for worst film...). The youtube video shows the program execution first on a Nexus 10 V4.4.4 and second on an ASUS Memopad V4,2. In both tablets, the behavior of the Msgbox2 is not modal.
First, the video
Second, the code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
Panel1.SetLayout(0,0,100%x,100%y)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Panel1_Touch (Action As Int, X As Float, Y As Float)
If Action=Panel1.ACTION_DOWN Then
Label1.Text="Panel Touched."
Panel1.Color=Colors.Red
End If
End Sub
Sub Button1_Click
Label1.Text="TRY AGAIN"
Dim nresp As Int
nresp=Msgbox2("Click Yes for BLUE and No for GREEN","","YES","","NO",Null)
If nresp=DialogResponse.POSITIVE Then Panel1.Color=Colors.Blue
If nresp=DialogResponse.NEGATIVE Then Panel1.Color=Colors.Green
End Sub
Any and all help will be truly welcomed.
Thank you.
Sandy
Original Thread:
http://www.b4x.com/android/forum/threads/msgbox-and-msgbox2-modal.44945/#post-275461