Pages

Thursday, July 29, 2010

This is a still a work in progress, but it's a function a la Titan....er, polyethene's Anchor function for anchoring controls to the bottom right of the window. I just felt like I had an idea for doing it and I wrote it out so maybe I can start using it in my scripts.

I realize that polyethene's function is probably 10x more reliable and efficient, but meh. It works the exact same way: call the function after your Guisize label for every one of the controls you want it to effect. The options can be a varation of 'x', 'y', 'w', and 'h', and you can just run them together. like 'xw'. x and y will keep the control the same distance from the bottom right corner, and w and h will do the width and height.

Use it in whatever the heck you want, as long as you include a small comment in your code saying "This isn't mine, here's where I got it."
-Bry