argumentum Posted September 12, 2007 Share Posted September 12, 2007 say I place a label like so: $label = GUICtrlCreateLabel ( "text", left, top [, width ) , now my question is:how to retrive the x,y and width just with $label ?TIA Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Helge Posted September 12, 2007 Share Posted September 12, 2007 Check out ControlGetPos.. $gui = GUICreate("", 300, 300) $label = GUICtrlCreateLabel("", 10, 10, 200, 23) $info = ControlGetPos($gui, "", $label) If @error Then Exit MsgBox(64, "", _ "Left :" & @TAB & $info[0] & @CRLF & _ "Top :" & @TAB & $info[1] & @CRLF & _ "Width :" & @TAB & $info[2] & @CRLF & _ "Height:" & @TAB & $info[3]) Link to comment Share on other sites More sharing options...
argumentum Posted September 12, 2007 Author Share Posted September 12, 2007 Check out ControlGetPos.....so many thanks !!!!=) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now