Page 1 of 1

text shift not work in buttons?

Posted: Mon Dec 01, 2008 2:30 am
by billworld
The following code will shift text in text fields (when referenced), but, won't shift the text in buttons. Is this expected behavior? If so, how do you overcome the problem that the built-in text shift for buttons is NOT vertically centered?

Code: Select all

on mouseup
    set the textshift of char 1 to -1 of me to 2
end mouseup

Posted: Mon Dec 01, 2008 3:27 am
by Lynn P.
Hi Bill ~
You can set the: bottomMargin, topMargin, leftMargin and rightMargin in pixels, to move the button text right where you wish as:

Code: Select all

set the bottomMargin of btn "myButton" to 30

Posted: Mon Dec 01, 2008 6:11 am
by billworld
That works. Thanks!
Lynn P. wrote:Hi Bill ~
You can set the: bottomMargin, topMargin, leftMargin and rightMargin in pixels, to move the button text right where you wish as:

Code: Select all

set the bottomMargin of btn "myButton" to 30