My project design includes 50 buttons. For appropriate arrangement to support any type of device, Buttons are distributed in equal column and rows means 25 buttons are placed in 5 columns and 5 rows. I am using code as below. However, instead of writing 50 code lines, I am looking for loop function in designer script or other method. Please suggest
I have assigned tag number for each button.
[/CODE]
I have assigned tag number for each button.
Sample Code:
B1.HorizontalCenter=20%x
B1.VerticalCenter=20%y
B2.HorizontalCenter=15%x
B2.VerticalCenter=20%y
B3.HorizontalCenter=15%x
B3.VerticalCenter=20%y
B4.HorizontalCenter=15%x
B4.VerticalCenter=20%y
B5.HorizontalCenter=15%x
B5.VerticalCenter=20%y
//like this continued till B25