Menu

Help withScrolled Window at Vtcl

Help
nigiro
2007-11-12
2013-05-08
  • nigiro

    nigiro - 2007-11-12

    The problem is I need resize the toplevel, but I want it will have scroll associated. I need it because my program have a lot of items inside, and if resolution of the screen is 800x600 or lower you can't use it.

    I have made this program (another):
    http://es.geocities.com/minigiro/main.tcl.tar.gz

    It's very simple, but i don't have any idea to convert it to scrolled window, with all the items inside and the toplevel resizable. It's made whith vtcl.

    Please, help!!! ^^

     
    • Ken Parker

      Ken Parker - 2007-11-13

      I haven't found a solution. We need to include a fix so that VTCL can do this. None of the scrolled frames seem to work. I am working on it. Let me know if you get it.

       
      • Strykaas

        Strykaas - 2007-11-13

        Why not a scrollable frame ?

        http://wiki.tcl.tk/1091

        (Did not try it btw)

         
    • Ken Parker

      Ken Parker - 2007-11-13

      OK. I am going to add this to the bugs list. I wasn't able to find a solution. Let us know if you come up with anything.

       
    • Strykaas

      Strykaas - 2007-11-13

      OK I had not seen your 2nd answer. Sorry.

       
    • Ken Parker

      Ken Parker - 2007-11-14

      The following solution worked for me. Just cut and paste to a test.tcl file. If you can figure out how to integrate your VTCL project with this then you should be set. meanwhile we will add the functionality to VTCL.
      package require BWidget
      # Add a scrollable frame, so that we do not have to worry about the size
      #
      set sw  [ScrolledWindow .sw -relief sunken -borderwidth 2]
      set sff [ScrollableFrame .sw.f]
      $sw setwidget $sff

      set sf  [$sff getframe]
      #
      # Add the various elements
      #
      set lid [label  $sf.name -text "Name"]
      set eid [entry $sf.editname -textvariable name]

      pack $sw -fill both -expand yes
      #  do not pack $sff
      pack $lid $eid
      #(So the trick is: first create a scrolled

       

Log in to post a comment.