Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox 'relief' property

Status
Not open for further replies.

ramsunder

Programmer
Sep 3, 2003
9
DE
I had taken a configure output of a TK listbox...a relevant abstract of output is :

"............ {-highlightthickness highlightThickness HighlightThickness 1 0} {-relief relief Relief sunken raised} ............."


Now I want to change the valus for Relief property.

I want it to be {-relief relief Relief flat raised}

Can any one help me how to achive this.

I had tried option add command but it changes only last entry.

Thanks in advance.

 
I suppose the primary question I have is why do you feel you need to change the next-to-last value reported? In the lists of configuration option information returned by a widget's configure operation, the next-to-last element is simply the widget's built-in default value for the option. The last value is the current value of the option, which is what really affects the widget's appearance and/or behavior. So when:

[tt].lbox configure -relief[/tt]

returns

[tt]-relief relief Relief flat raised[/tt]

the listbox is going to appear raised, and the [tt]flat[/tt] value has no effect on the appearance.

- Ken Jones, President, ken@avia-training.com
Avia Training and Consulting, 866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Question to your answer, why I "need to change the next-to-last value reported"

Since in older version of TK say 3.6 and 4.0 configure command for same code of listbox gives me
"-relief relief Relief flat raised"

and tk8.4 give
"-relief relief Relief sunken raised"

And, it really changes the visual effect of listbox over frame (to which it is packed).

I hope I made it myself clear. Your help will be appreciated.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top