⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vscale.tcl

📁 genesis 2000 v9.1软件下载
💻 TCL
字号:
# vscale.tcl --## This demonstration script shows an example with a vertical scale.## RCS: @(#) $Id: vscale.tcl,v 1.2 1998/09/14 18:23:30 stanton Exp $if {![info exists widgetDemo]} {    error "This script should be run from the \"widget\" demo."}set w .vscalecatch {destroy $w}toplevel $wwm title $w "Vertical Scale Demonstration"wm iconname $w "vscale"positionWindow $wlabel $w.msg -font $font -wraplength 3.5i -justify left -text "An arrow and a vertical scale are displayed below.  If you click or drag mouse button 1 in the scale, you can change the size of the arrow."pack $w.msg -side top -padx .5cframe $w.buttonspack $w.buttons -side bottom -fill x -pady 2mbutton $w.buttons.dismiss -text Dismiss -command "destroy $w"button $w.buttons.code -text "See Code" -command "showCode $w"pack $w.buttons.dismiss $w.buttons.code -side left -expand 1frame $w.frame -borderwidth 10pack $w.framescale $w.frame.scale -orient vertical -length 284 -from 0 -to 250 \	-command "setHeight $w.frame.canvas" -tickinterval 50canvas $w.frame.canvas -width 50 -height 50 -bd 0 -highlightthickness 0$w.frame.canvas create polygon 0 0 1 1 2 2 -fill SeaGreen3 -tags poly$w.frame.canvas create line 0 0 1 1 2 2 0 0 -fill black -tags lineframe $w.frame.right -borderwidth 15pack $w.frame.scale -side left -anchor nepack $w.frame.canvas -side left -anchor nw -fill y$w.frame.scale set 75proc setHeight {w height} {    incr height 21    set y2 [expr $height - 30]    if {$y2 < 21} {	set y2 21    }    $w coords poly 15 20 35 20 35 $y2 45 $y2 25 $height 5 $y2 15 $y2 15 20    $w coords line 15 20 35 20 35 $y2 45 $y2 25 $height 5 $y2 15 $y2 15 20}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -