Page 2 of 2

Re: buttons position in dimensioning projects

PostPosted: Thu May 19, 2016 7:44 am
by Garic
1 click on "Insertar"
2 you will see a list of codes
3 copy BBCode

Image

4 paste this BBCode into your message to the forum

Re: buttons position in dimensioning projects

PostPosted: Thu May 19, 2016 8:08 am
by Dixan
:D Here is my problem, I can set the the button position, but when I resize or max the button position stay at same position.

Image
Image

Re: buttons position in dimensioning projects

PostPosted: Thu May 19, 2016 8:33 am
by Garic
place your objects inside the container
to bind the container "at the top"
container has resize event
follow a very simple mathematical calculations

Image

GetObjectInfo "Container" "Width" "[Container_Width]"
GetObjectInfo "ComboBox" "Width" "[ComboBox_Width]"
GetObjectInfo "ComboBox" "Top" "[ComboBox_Top]"
MoveObject "ComboBox" "([Container_Width]-[ComboBox_Width]) / 2" "[ComboBox_Top]"

Re: buttons position in dimensioning projects

PostPosted: Thu May 19, 2016 9:08 am
by Dixan
They are inside a container, and set "at the top" but the button and the textentry box stay at the selected position even when I max, (214 from left and 27 from the top). The container and the simple text change correctly when I resize because the have the option "to the top" .

Re: buttons position in dimensioning projects

PostPosted: Thu May 19, 2016 9:21 am
by Garic
show all your project
you're obviously doing something wrong

Re: buttons position in dimensioning projects

PostPosted: Thu May 19, 2016 11:33 am
by Dixan
:lol: :lol: :lol: Thanks guys I got it :lol: :lol: :lol:
I used this script, maybe it is not the best way but works ha ha

GetObjectInfo "Contenedor15" "Width" "[EntradaTexto1]"
GetObjectInfo "ListaDesplegable1" "Width" "[EntradaTexto2]"
GetObjectInfo "ListaDesplegable1" "Top" "[EntradaTexto3]"
Math "[EntradaTexto2]/2" "" "[EntradaTexto4]"
Math "[EntradaTexto1]/2-[EntradaTexto4]" "" "[EntradaTexto5]"
MoveObject "ListaDesplegable1" "[EntradaTexto5]" "[EntradaTexto3]"