TIP #146 Version 1.1: Add Overall Anchoring to the Grid Geometry Manager

This is not necessarily the current version of this TIP.


TIP:146
Title:Add Overall Anchoring to the Grid Geometry Manager
Version:$Revision: 1.1 $
Author:Peter Spjuth <peter dot spjuth at space dot se>
State:Draft
Type:Project
Tcl-Version:8.5
Vote:Pending
Created:Tuesday, 05 August 2003

Abstract

This TIP proposes to add an anchor option to grid managers to control the behaviour of a grid where all weights are zero.

Rationale

Have you ever found yourself adding "-weight" to an unused row or column in a grid? That is usually the workaround to use when you have no "-weight" on any column but you don't want things to sit in the middle of the grid when the window is grown.

By adding an anchor option it lets the code directly reflect the intention of the programmer and it makes the code more maintainable since you can add and remove columns without having to update the dummy weight.

Shrinking a Grid

When growing a grid, the behaviour is rather simple. Follow the weights and when 0, follow the anchor.

When shrin