Jump to content

Recommended Posts

Posted

I have a gui button menu that I use at work using autoit that replaces explorer on startup. In Windows 10 there is no wallpaper without explorer so I want to make the gui fullscreen which I'm able to do but how do I center vertically and horizontally my gui content such as buttons and labels. I also want to be able to add computer info in the bottom right corner which I know how to get the info but not how to place in the bottom right corner. Appreciate any help. Thanks!

  • 1 month later...
Posted (edited)

Sounds like some basic geometry is what you need.  How does one find the center of an object?  Measure the sides/dimensions and find the mid-points (very easy for a rectangle/desktop).  

Solve for X & Y

Solve for X.png

edit: Center point coordinate [X,Y] = [(Shape W/2)+Shape X , (Shape H/2)+Shape Y]

Edited by spudw2k

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...