Jump to content
xEviiLx

Center rectangle

Recommended Posts

xEviiLx

Hello,

How can I create a rectagle in center of GUICtrlCreateGraphic?

 

   GUICtrlSetGraphic(-1, $GUI_GR_RECT, CoordC, CoordC , $x, $y)

 

Share this post


Link to post
Share on other sites
xEviiLx

Oh nvm, I have resolved that with:

GUICtrlSetGraphic(-1, $GUI_GR_RECT, 140 - ($x / 2), 140 - ($y / 2), $x, $y)

Sorry.

 

#close

Share this post


Link to post
Share on other sites
Jos

Guess you just have beaten the record of solving your own issue... within 3 minutes.
Maybe next time first think/try before posting? ;) 

Jos

  • Like 1

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
xEviiLx

Yeah, my bad... :'(

Share this post


Link to post
Share on other sites
Maciel

Well, thanks for sharing the solution Evil. Helped me too.

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

×