Jump to content
Sign in to follow this  
LimeSeed

Get Coordinates

Recommended Posts

LimeSeed

Is There Any Way To Get Coordinates from an image in a gui? something like "guictrlgetcoord"?


global $warming = true

Share this post


Link to post
Share on other sites
smashly

ControlGetPos ( "title", "text", controlID )

Edit: You'll find it in the Help File under "Window Management -> Controls"

Edited by smashly

Share this post


Link to post
Share on other sites
LimeSeed

ControlGetPos ( "title", "text", controlID )

Edit: You'll find it in the Help File under "Window Management -> Controls"

but that wont help me get a control in my gui.

i have a picture that i call $ballg

i want to be able to get the x and the y coordinates of the picture.


global $warming = true

Share this post


Link to post
Share on other sites
smashly

Yep it will help to retrieve the x & y co-ordinates of you picture control.

That is exactly what the function is for to get a controls position.

Have a little read in the help file under "Window Management -> Controls -> ControlGetPos" before dismissing what the function does :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.