I wish that it were possible to use .SetLayout in Designer Scripts. It would make the code more compact, easier to read and easier to create from scratch than the other(longer) alternatives.
This is how I did it in Designer Scripts...
and this is how I'd like to do it...
I'm still at the early stage of figuring out how to use Designer Scripts - so hopefully I'm not missing something obvioius.
This is how I did it in Designer Scripts...
B4X:
pnlSpeechOptions.left=1%x : pnlSpeechOptions.top=2%y : lSpeechOptions.Width=98%x : pnlSpeechOptions.height=25%x
and this is how I'd like to do it...
B4X:
pnlSpeechOptions.SetLayout(1%x, 2%y, 98%x, 25%x)
I'm still at the early stage of figuring out how to use Designer Scripts - so hopefully I'm not missing something obvioius.