This patch will allow developers to specify left, right, or center justification for a listbox.
patch file
I wonder why this nice TIP isn't immediately implemented in TCL 8.5 ... Anyhow - here a patch for the windows tkWinDefault.h.
Since I'am not able to attach a file - here in clear-text:
*** tkWinDefault.h_ori Sat Nov 12 23:04:34 2011 --- tkWinDefault.h Thu Dec 1 11:19:31 2011 *************** *** 227,232 **** --- 227,233 ---- #define DEF_LISTBOX_RELIEF "sunken" #define DEF_LISTBOX_SCROLL_COMMAND "" #define DEF_LISTBOX_LIST_VARIABLE "" + #define DEF_LISTBOX_JUSTIFY "left" #define DEF_LISTBOX_SELECT_COLOR SELECT_BG #define DEF_LISTBOX_SELECT_MONO BLACK #define DEF_LISTBOX_SELECT_BD "0"
patch file
I wonder why this nice TIP isn't immediately implemented in TCL 8.5 ...
Anyhow - here a patch for the windows tkWinDefault.h.
Since I'am not able to attach a file - here in clear-text:
*** tkWinDefault.h_ori Sat Nov 12 23:04:34 2011
--- tkWinDefault.h Thu Dec 1 11:19:31 2011
***************
*** 227,232 ****
--- 227,233 ----
#define DEF_LISTBOX_RELIEF "sunken"
#define DEF_LISTBOX_SCROLL_COMMAND ""
#define DEF_LISTBOX_LIST_VARIABLE ""
+ #define DEF_LISTBOX_JUSTIFY "left"
#define DEF_LISTBOX_SELECT_COLOR SELECT_BG
#define DEF_LISTBOX_SELECT_MONO BLACK
#define DEF_LISTBOX_SELECT_BD "0"