Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Scrollbars to the tcl-parameter windows #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified 3dptv_vc2010/3dptv_vc2010.suo
Binary file not shown.
4 changes: 2 additions & 2 deletions 3dptv_vc2010/3dptv_vc2010/3dptv_vc2010.vcxproj.user
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommandArguments>c:\ptv\ptv.tcl</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>D:\OpenPTV\3dptv\ptv.tcl</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>c:\ptv\test</LocalDebuggerWorkingDirectory>
<LocalDebuggerWorkingDirectory>D:\OpenPTV\3dptv\test</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LocalDebuggerCommandArguments>c:\ptv\ptv.tcl</LocalDebuggerCommandArguments>
Expand Down
2 changes: 1 addition & 1 deletion ptv.tcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

package require BWidget
package require tooltip

lappend auto_path [file dirname [info script]]
Expand Down
22 changes: 19 additions & 3 deletions src_tcl/calpar.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
########################################

proc calpar { } {
set w .changecalib
set p .changecalib
catch {destroy $w}
toplevel .changecalib
wm title $w "Changing Parameters"
catch {destroy $p}
# Create new Window & adjustment of initial size and position
toplevel $p
wm title $p "Changing Parameters"
wm geometry $p 550x550+150+150


# Editet by: P.Steinhoff 24.01.2012
# Put everything in a ScrolledWindow, bwidget1.9.4 (included in TCL 8.4.19) is required in folder: ..svn-ptv/lib/!!
set sw [ScrolledWindow $p.sw]
pack $p.sw -fill both -expand true

set sf [ScrollableFrame $p.sw.sf]

$p.sw setwidget $sf
#
set q [$sf getframe]
set w $q

global cp

Expand Down
28 changes: 23 additions & 5 deletions src_tcl/mainpar.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,30 @@
# Changing of mainparameters

proc mainpar {} {

set w .changemain
set p .changemain
catch {destroy $w}
toplevel .changemain
wm title $w "Changing Parameters"

catch {destroy $p}
# Create new Window & adjustment of initial size and position
toplevel $p
wm title $p "Changing Parameters"
wm geometry $p 550x650+150+150


# Editet by: P.Steinhoff 24.01.2012
# Put everything in a ScrolledWindow, bwidget1.9.4 (included in TCL 8.4.19) is required
set sw [ScrolledWindow $p.sw]
pack $p.sw -fill both -expand true

set sf [ScrollableFrame $p.sw.sf]

$p.sw setwidget $sf
#
set q [$sf getframe]
set w $q
# Panning via right mouse button: (does not work at the moment)
# bind .changemain <ButtonPress-3> {%W scan mark %x %y}
# bind .changemain <B3-Motion> {%W scan dragto %x %y}
#
global mp

label $w.title -text "Main Parameters" -font {Helvetica 12 bold} -width 20 -anchor center
Expand Down
23 changes: 19 additions & 4 deletions src_tcl/trackpar.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,26 @@
########################################

proc trackpar { } {
set w .changetrack
set p .changetrack
catch {destroy $w}
toplevel .changetrack
wm title $w "Changing Parameters"

catch {destroy $p}
# Create new Window & adjustment of initial size and position
toplevel $p
wm title $p "Changing Parameters"
wm geometry $p 550x550+150+150

# Editet by: P.Steinhoff 24.01.2012
# Put everything in a ScrolledWindow, bwidget1.9.4 (included in TCL 8.4.19) is required!!
set sw [ScrolledWindow $p.sw]
pack $p.sw -fill both -expand true

set sf [ScrollableFrame $p.sw.sf]

$p.sw setwidget $sf
#
set q [$sf getframe]
set w $q
#
global tp

label $w.title -text "Tracking Parameters" -font {Helvetica 12 bold} -width 50 -anchor center
Expand Down