📄 scrolledcanvas.itk
字号:
error "bad justify argument \"$direction\": should be\ left, right, top, or bottom" } } }}# ------------------------------------------------------------------# CANVAS METHODS:## The following methods are thin wraps of standard canvas methods.# Consult the Tk canvas man pages for functionallity and argument# documentation# ------------------------------------------------------------------# ------------------------------------------------------------------# METHOD: addtag tag searchSpec ?arg arg ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::addtag {args} { return [eval $itk_component(canvas) addtag $args]}# ------------------------------------------------------------------# METHOD: bbox tagOrId ?tagOrId tagOrId ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::bbox {args} { return [eval $itk_component(canvas) bbox $args]}# ------------------------------------------------------------------# METHOD: bind tagOrId ?sequence? ?command?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::bind {args} { return [eval $itk_component(canvas) bind $args]}# ------------------------------------------------------------------# METHOD: canvasx screenx ?gridspacing?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::canvasx {args} { return [eval $itk_component(canvas) canvasx $args]}# ------------------------------------------------------------------# METHOD: canvasy screeny ?gridspacing?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::canvasy {args} { return [eval $itk_component(canvas) canvasy $args]}# ------------------------------------------------------------------# METHOD: coords tagOrId ?x0 y0 ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::coords {args} { return [eval $itk_component(canvas) coords $args]}# ------------------------------------------------------------------# METHOD: create type x y ?x y ...? ?option value ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::create {args} { set retval [eval $itk_component(canvas) create $args] configure -autoresize $itk_option(-autoresize) return $retval}# ------------------------------------------------------------------# METHOD: dchars tagOrId first ?last?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::dchars {args} { return [eval $itk_component(canvas) dchars $args]}# ------------------------------------------------------------------# METHOD: delete tagOrId ?tagOrId tagOrId ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::delete {args} { set retval [eval $itk_component(canvas) delete $args] configure -autoresize $itk_option(-autoresize) return $retval}# ------------------------------------------------------------------# METHOD: dtag tagOrId ?tagToDelete?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::dtag {args} { eval $itk_component(canvas) dtag $args configure -autoresize $itk_option(-autoresize)}# ------------------------------------------------------------------# METHOD: find searchCommand ?arg arg ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::find {args} { return [eval $itk_component(canvas) find $args]}# ------------------------------------------------------------------# METHOD: focus ?tagOrId?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::focus {args} { return [eval $itk_component(canvas) focus $args]}# ------------------------------------------------------------------# METHOD: gettags tagOrId# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::gettags {args} { return [eval $itk_component(canvas) gettags $args]}# ------------------------------------------------------------------# METHOD: icursor tagOrId index# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::icursor {args} { eval $itk_component(canvas) icursor $args}# ------------------------------------------------------------------# METHOD: index tagOrId index# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::index {args} { return [eval $itk_component(canvas) index $args]}# ------------------------------------------------------------------# METHOD: insert tagOrId beforeThis string# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::insert {args} { eval $itk_component(canvas) insert $args}# ------------------------------------------------------------------# METHOD: itemconfigure tagOrId ?option? ?value? ?option value ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::itemconfigure {args} { set retval [eval $itk_component(canvas) itemconfigure $args] configure -autoresize $itk_option(-autoresize) return $retval}# ------------------------------------------------------------------# METHOD: itemcget tagOrId ?option? # ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::itemcget {args} { set retval [eval $itk_component(canvas) itemcget $args] return $retval}# ------------------------------------------------------------------# METHOD: lower tagOrId ?belowThis?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::lower {args} { eval $itk_component(canvas) lower $args}# ------------------------------------------------------------------# METHOD: move tagOrId xAmount yAmount# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::move {args} { eval $itk_component(canvas) move $args configure -autoresize $itk_option(-autoresize)}# ------------------------------------------------------------------# METHOD: postscript ?option value ...?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::postscript {args} { # # Make sure the fontmap is in scope. # set fontmap "" regexp -- {-fontmap +([^ ]+)} $args all fontmap if {$fontmap != ""} { global $fontmap } return [eval $itk_component(canvas) postscript $args]}# ------------------------------------------------------------------# METHOD: raise tagOrId ?aboveThis?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::raise {args} { eval $itk_component(canvas) raise $args}# ------------------------------------------------------------------# METHOD: scale tagOrId xOrigin yOrigin xScale yScale# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::scale {args} { eval $itk_component(canvas) scale $args}# ------------------------------------------------------------------# METHOD: scan option args# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::scan {args} { eval $itk_component(canvas) scan $args}# ------------------------------------------------------------------# METHOD: select option ?tagOrId arg?# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::select {args} { eval $itk_component(canvas) select $args}# ------------------------------------------------------------------# METHOD: type tagOrId# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::type {args} { return [eval $itk_component(canvas) type $args]}# ------------------------------------------------------------------# METHOD: xview index# ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::xview {args} { eval $itk_component(canvas) xview $args}# ------------------------------------------------------------------# METHOD: yview index # ------------------------------------------------------------------itcl::body iwidgets::Scrolledcanvas::yview {args} { eval $itk_component(canvas) yview $args}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -