@ccc @phuket2 you had a lot going on here with this and I didn't see. Sorry! Ian's original post got me thinking about layout a lot, and I started on something as well. I really like how you can do a lot of auto layout in html with css or javascript and it's really useful. I think the same is possible for UI
. So far I have:
- distribute horizontally (equal distribution) with padding is possible
- distribute vertically (equal distribution) with padding is possible
- adjust width/height/x/y by percent (rather than by points or pixels)
Working on a grid distribution.
None of this is too hard or rocket science. Just a bunch of numbers. I'm sure anyone could do it...
It's really different than what @phuket2 has above though...!!
I don't know why I didn't think to do this before... I seem to use a kind of distribution for doing buttons at times, but having it in a module would be much easier. Will share once I've got kinks worked out...
With what I have already I could do @phuket2 's battleship grid without the headache! But I want to improve the functions to make it even more straightforward.