Disabled TextArea in WebContainer

I had started with a bunch of controls on a page object and all was working fine. I then moved all those controls to a container and for some reason all of my TextArea and TextField controls are now displaying as if they are disabled (darker grey background and unable to enter any text). All of the Buttons are also now disabled. Checking at runtime, the controls’ Enabled property is True, and ReadOnly is False.

I think when converting to the container, I just switched the page’s super to WebContainer. And the container is added to the main page dynamically using EmbedWithin.

I’m thinking of making a new container from scratch, and then copy/paste everything from the current container into it to see that changes anything…

Don’t do this just yet. Try and recreate the problem in a test project. If you can do so, then you know it’s a framework bug. Please post that project here and also create an Issues Ticket.

If you can’t recreate the problem, then now we can chalk it up to ghosts in the machine. If you would like, I would still suggest a ticket, but you’d have to mark it private and give them your whole, real project.

Personally, I would try to debug it as described above before going down the starting from scratch route.

Also, maybe related? I just recently found and filed #79672 - WebControls within disabled WebContainer are still enabled (resolved)

Just did this test and when I drag the WebContainer created by changing the super to a WebPage the Enabled property is set to False.

If I add a WebContainer to the project, add the controls, then drag the container to the page, then the Enabled property is True.

You may just need to make sure that the property is set to True for your EmbedWithin container and the controls should show Enabled.

Edit: also the WebContainer that was changed from WebPage, does not show the controls.

Edit2: saving/closing/loading the project and now the WebContainer show the controls

1 Like

Yes! I was just looking at the .xojo_code file for the container and the Enabled property is set to False. The popup menus and the combobox controls still worked, but that is probably due to the ticket @Tim_Parnell mentioned above.

Thank you both!

1 Like