iOS Question B4XDialog

Nicolás Cieri

Active Member
Licensed User
Hi, please help..

If I put a simple textbox in a B4XDialog with "Enable=False" this is not working.

All the controls can't be disabled inside a B4XDialog.

Any idea? Thanks.
 

Nicolás Cieri

Active Member
Licensed User
The “Enabled” property.

I need to be able to change the property dynamically. but if I create a dialog with 2 text boxes and put Enabled = False on one, it still allows writing.

This only happen inside theB4XDialog
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Don't create the layout in your code. It is a big mistake. Why? Watch this video tutorial: https://www.b4x.com/etp.html?vimeography_gallery=1&vimeography_video=255731307
Create a small layout file, with anchors and designer script.

B4X:
Dim pGen As B4XView = xui.CreatePanel("")
pGen.SetLayoutAnimated(0, 0, 0, 300dip, 300dip) 'never use percentage outside of the resize event (it is allowed in the designer script).
pGen.LoadLayout("DialogLayout")
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…