N Nicolás Cieri Active Member Licensed User Jun 11, 2020 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2020 #2 TextField? What is not working? Upvote 0
N Nicolás Cieri Active Member Licensed User Jun 11, 2020 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2020 #4 Please upload a small example. Upvote 0
N Nicolás Cieri Active Member Licensed User Jun 11, 2020 #5 The uploaded file is too large? Only 624k Upvote 0
N Nicolás Cieri Active Member Licensed User Jun 11, 2020 #6 Please review the follow example. Thanks Attachments Example1.zip Example1.zip 59.7 KB · Views: 340 Upvote 0
Semen Matusovskiy Well-Known Member Licensed User Jun 11, 2020 #7 Enable/Disable after Dialog.ShowCustom(pGen,"Yes","","") Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 12, 2020 #8 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. Code: Copy 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
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. Code: Copy 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")