Hello everyone!
To do this, I use 2 objects: Button and EditText.
In the Visual Designer, I set both of these objects in the same place in such a way that the Button is under EditText.
In normal operation of the application, EditText is hidden (EditText.Visable = False)
In the Button1_LongClick function, I change the EditText.Visable value to True - I want the user to enter their name for the Button there.
The problem is that the EditText object is still not available.
It is covered by a Button and cannot be used.
I can see EditText and can use it only when I hide Button1.
In Visual Designer, the "Bring to Front" command for EditText and "Send to Back" for Button1 do not work.
The same code, works fine in iOS (mode: B4XPage). (???)
The above algorithm works very well for me in the older version of the Android application made without B4XPage.
Anyone have any idea?
To do this, I use 2 objects: Button and EditText.
In the Visual Designer, I set both of these objects in the same place in such a way that the Button is under EditText.
In normal operation of the application, EditText is hidden (EditText.Visable = False)
In the Button1_LongClick function, I change the EditText.Visable value to True - I want the user to enter their name for the Button there.
The problem is that the EditText object is still not available.
It is covered by a Button and cannot be used.
I can see EditText and can use it only when I hide Button1.
In Visual Designer, the "Bring to Front" command for EditText and "Send to Back" for Button1 do not work.
The same code, works fine in iOS (mode: B4XPage). (???)
The above algorithm works very well for me in the older version of the Android application made without B4XPage.
Anyone have any idea?
B4X:
Private Sub Button1_LongClick
EditText1.Visible = True '<------------ this line works, but the object remains under Button1
EditText1.Text = Button1.Text
Button1.Text = ""
End Sub