🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Scrollbar for label list

User: "Sai91"
Altair Community Member
Updated by Sai91

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.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

     

     

    User: "Sai91"
    Altair Community Member
    OP
    Updated by Sai91

    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.