Scrollbar for label list
Hello Everyone.
I am trying to create a scrollbar for list of labels using HWTK gui. But I am unable to do connect the scrollbar to label list. Is there a way to do it. Please see I dont want to use listbox as I have combobox in my window also. Any help would be much appreciated. Thank you.
Example:
set t .labelList.text
#create a text as label list:
hwtk::text .labelList
#add labels
for {set i 1} {$i<100} {incr i} {
label $t.lbl$i -text Label$i
$t window create end -window $t.lbl$i
}
$t configure -state disabled
#pack it into your frame
pack .labelList -in .yourFrame
Thank you very much for your quick response and I apologies in my delay in replying as I was caught up with something else. Can I embed combobox in textbox? I will try it. But I did manage to figure out a solution for my problem by embedding list of combobox(s) in a canvas and attaching scrollbar to it. If I can do it in hwtk text box then it would reduce my code length.
Thanks again for your reply.
Use text box you can embed any label, button, etc...
Hwtk textbox is designed with auto-scrollbars, you don't need to connect them to textbox any more