I was delighted to see the new Designer Scripts in the Designer.
I'm trying to add a script to an existing project but it is proving a very slow process. I am working on a default 320 x 480 screen.
For example: I go into main Designer properties & from the drop down list box I select txData1. The left value is 110. I calculate that this is 110/320 x 100=34%
I switch to the Designer Scripts tab and enter txtData1.left=34%x
I then go back into Designer properties but it has defaulted to Activity, so I have to go into the drop down list then scroll down to txData1 to look for the txtData1.top value.
And so on.
Am I missing something?
It would be nice if all the properties for each view could be easily copied into the scripts tab to reduce all the switching backwards and forwards.
Better still would be the ability to enter %x & %y directly into Designer properties.
Also is it possible to calculate values within the script? I tried
tmp=txtData1.width/320
txtData1.width=tmp%x
but tmp%x was "not a valid identifier".
Any thoughts?
Thank you,
Robert
I'm trying to add a script to an existing project but it is proving a very slow process. I am working on a default 320 x 480 screen.
For example: I go into main Designer properties & from the drop down list box I select txData1. The left value is 110. I calculate that this is 110/320 x 100=34%
I switch to the Designer Scripts tab and enter txtData1.left=34%x
I then go back into Designer properties but it has defaulted to Activity, so I have to go into the drop down list then scroll down to txData1 to look for the txtData1.top value.
And so on.
Am I missing something?
It would be nice if all the properties for each view could be easily copied into the scripts tab to reduce all the switching backwards and forwards.
Better still would be the ability to enter %x & %y directly into Designer properties.
Also is it possible to calculate values within the script? I tried
tmp=txtData1.width/320
txtData1.width=tmp%x
but tmp%x was "not a valid identifier".
Any thoughts?
Thank you,
Robert