TIP: | 441 |
Title: | Add -justify Configuration Option to the listbox Widget |
Version: | $Revision: 1.3 $ |
Authors: |
François Vogel <fvogelnew1 at users dot sf dot net> François Vogel <fvogelnew1 at free dot fr> |
State: | Final |
Type: | Project |
Tcl-Version: | 8.6.5 |
Vote: | Done |
Created: | Monday, 18 January 2016 |
Keywords: | Tk, listbox |
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.
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:
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.
A reference implementation is available in branch tip-441 of the fossil repository.
This document has been placed in the public domain.
[Index] [History] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]
TIP AutoGenerator - written by Donal K. Fellows