Hi,
I'm a TCL beginner and I have problems adding scroll bars to a listbox. So I have tried to make a small example script to put two scrollbars on a text box like this:
[tt]scrollbar .yscroll -command {.two.text yview} -orient vertical
scrollbar .xscroll -command {.two.text xview} -orient horizontal
text .two.text -yscrollcommand {.yscroll set}\
-xscrollcommand {.xscroll set}
pack .two.text -side top[/tt]
Why does this not give me scrollbars to scroll the text box???
Thank you for any help or assistance!
I'm a TCL beginner and I have problems adding scroll bars to a listbox. So I have tried to make a small example script to put two scrollbars on a text box like this:
[tt]scrollbar .yscroll -command {.two.text yview} -orient vertical
scrollbar .xscroll -command {.two.text xview} -orient horizontal
text .two.text -yscrollcommand {.yscroll set}\
-xscrollcommand {.xscroll set}
pack .two.text -side top[/tt]
Why does this not give me scrollbars to scroll the text box???
Thank you for any help or assistance!