Auto-Anchors would be nice.
make it so!
nuff said.
-Genjura
ID:134028
![]() Aug 9 2007, 5:16 pm
|
|
![]() Aug 9 2007, 5:22 pm
|
|
Auto Anchors would be a great idea. I second that thought.
|
Great idea.
But not exactly easy. Some people want their windows to act a certain way when resized, auto-anchors wouldn't be the best name for it.. Perhaps.. "Recommended Anchors?" |
Auto anchors? How would such a thing work? The editor doesn't know what kind of anchors you want, so you'd have to tell an anchor wizard how you want it, but wouldn't it just be easier to use the controls in the anchor tab? It seems like a lot of people have been having trouble with anchors when they're real simple, perhaps Lummox JR should talk about anchors more in his third article.
|
auto-anchors would keep all of the elements on the screen proportional to their initial size on the original canvas they made it on. If the screen's x size increased by 50%, so would every element of the window's x.
|
Crashed wrote:
So instead of auto-anchors you want 100%x and 100%y anchors default? Not the same thing, unless I'm completely misunderstanding how anchors work. He wants an option to (in effect) set the anchors to (100* x1/window_width, 100* y1/window_height) - (100* x2/window_width, 100* y2/window_height), where (x1,y1)-(x2,y2) are the bounds of the control. That would allow the control to resize proportionally with the window. Currently, you can't set non-integer values for the "Other" anchor positions, so this is difficult to do even manually. |
Nope, not the same thing. Try it with just a Map control in the middle of a window. Top Left/Bottom Right keeps the same distance from each edge of the window. If it was resizing proportionally, those distances would change.
E.g., to start with: Window is 500x500 Control is 200x200 with top-left corner located at (100,100) Now resize the window to 1000x500 If using TopLeft/BottomRight, the control is now 700x200 and still located at (100,100). If resizing proportionally, it should be 400x200 and located at (200,100). |
I'm not sure how you were able to gather all that just from the words 'auto-anchor.' And once again, you wouldn't need any magic or tricks to do that. All you would need are the anchor controls already provided. Instead of Top Left, you could set it to 50%x and 50%y. This will shift and resize the control to what you wanted.
|
Of course you can calculate and enter the values manually (though you're limited because percentage anchors can't be non-integers), but it would be nice if the editor had an option that did it automatically.
|
It all depends on what anchors he uses. I don't know why you'd want to move the map rather than just resizing it.
|
I do like this idea, so much that I think I'll look into adding a button to do the auto-set you described. It'll have to be something that the user still manually activates with a button, though.
Lummox JR |