container control inside scrollable area not updating

My app has enough preferences that I want to put the options in a container control inside a scrollable area that takes up nearly the entire view. When I open the view, I cannot get write the default values to text boxes in the container control nor set the values of the switches there. Nothing shows up. Oddly enough, if I enter new values in the blank text boxes, the program reads those just fine.

What do I need to do to initialize the controls inside the container control? I’ve tried the open and where available activate events for the individual controls, the container control, the view that contains the container control, etc.

On iOS there is a known bug that prevents any code located in the Open events of an iOSContainerControl to execute. <https://xojo.com/issue/44429> and <https://xojo.com/issue/44743>

Two solutions I use:

  1. Create a Constructor method for the iOSContainerControl, and setup your text boxes there

OR

  1. Add a Public Setup method for the iOSContainerControl and use code like this:

[code]Dim cc as new MyCustomContainerControl
cc.Setup()

//Then add to ScrollView
[/code]

Thanks very much, Jrmie, for your suggestions. I tried the public set-up method without success and couldn’t quite bring myself to spend the time to build the text boxes in the constructor though I’m sure that would have worked had I not been so lazy.

What finally did work for me was to incorporate a timer into the container control and have it trigger once after 200 ms. The timer action fills the text boxes and sets the switches. The timer delay is short enough that it triggers doing the animated opening of the modal view so that the user doesn’t notice the delay in filling the text boxes.