> I am trying to left and right justify text within the cells of my Tktable 
> application. No matter what I do it seems to always center the data.
>  
> I've used
>     fieldDataTable configure -justify left     ------> Receive error justify not a 
> valid option
> and
>     fieldDataTable tag config msgColumn -wrap 1 -justify left -multiline 1
>     fieldDataTable tag col msgColumn $COLUMNS(STATUS)
>     fieldDataTable tag col msgColumn $COLUMNS(DEVICEIP)
>  
> In all cases the text inserted, following the config statements is always centered. 
> Any suggestions on what I'm doing wrong?

    You were on the right track, just the wrong option. 0-]  The -justify
option specifies what justifiction MULTILINE text should have.  For single
line text, you must instead specify the -anchor option.  Like so:

fieldDataTable tag configure msgColumn -wrap 1 -justify left -multiline 1 -anchor w
eval fieldDataTable tag col msgColumn $COLUMNS(STATUS) $COLUMNS(DEVICEIP)

    Should get you what you're looking for.  I just added the -anchor w
option along with what you already had. 0-]

Damon



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to