Menu

#302 Listbox justification

TIP Implementation
open
5
2010-05-04
2010-05-04
No

This patch will allow developers to specify left, right, or center justification for a listbox.

Discussion

  • Russell Davidson

    patch file

     
  • Thomas Perschak

    Thomas Perschak - 2011-12-01

    I wonder why this nice TIP isn't immediately implemented in TCL 8.5 ...
    Anyhow - here a patch for the windows tkWinDefault.h.

     
  • Thomas Perschak

    Thomas Perschak - 2011-12-01

    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"

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.