Jump to content

Button Posittion


KevinC

Recommended Posts

I do button change rectangle but rectangle screen left top

I do button change rectangle but rectangle screen left top

For Example :

function button()

window = guiCreateWindow(269, 359, 602, 361, "", false)

button = guiCreateButton(36, 39, 116, 47, "", false, window)

bw, bh = guiGetSize ( button, false )
     bx, by = guiGetPosition (button, false )

setAlpha(button, 0)

end

function dx()

dxDrawRectangle(bx,by,bw,bh,tocolor(0,0,0,120))

end

Edited by KevinC
add
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...