TIP #441: ADD -JUSTIFY CONFIGURATION OPTION TO THE LISTBOX WIDGET =================================================================== Version: $Revision: 1.3 $ Author: François Vogel François Vogel State: Final Type: Project Tcl-Version: 8.6.5 Vote: Done Created: Monday, 18 January 2016 URL: https://tip.tcl-lang.org441.html Post-History: ------------------------------------------------------------------------- ABSTRACT ========== Despite the *listbox* widget already having numerous configuration options, some users need more refinements and have requested the possibility to control the justification of the text displayed in the items of the listbox. This TIP proposes to add this option. RATIONALE =========== Currently the *listbox* widget always aligns its items leftwards. Some users miss a configuration options allowing to justify items in the *listbox* widget. These RFE include: * RFE 454303, [] * RFE 3f456a5bb9, [] PROPOSED CHANGE ================= It is proposed to add the *-justify* configuration option to the Tk *listbox* widget. Possible values are as already documented in the *options* manual page (i.e., *left*, *center*, or *right*), and translate internally into standard /Tk_Justify/ values, i.e., TK_JUSTIFY_LEFT, TK_JUSTIFY_CENTER, and TK_JUSTIFY_RIGHT, respectively. Default value is *left* on all platforms, for backwards compatibility reasons. REFERENCE IMPLEMENTATION ========================== A reference implementation is available in branch tip-441 of the fossil repository. COPYRIGHT =========== This document has been placed in the public domain. ------------------------------------------------------------------------- TIP AutoGenerator - written by Donal K. Fellows