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.
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!!! ^^
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!!! ^^
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.
Why not a scrollable frame ?
http://wiki.tcl.tk/1091
(Did not try it btw)
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.
OK I had not seen your 2nd answer. Sorry.
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