X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fwhere-vessels;fp=yarrg%2Fwhere-vessels;h=6b1b0e2de61213b2f565458e32e6bac85ce83956;hp=eacde3aa7eda581375a39ea13281259f0abdf120;hb=0483d963eca7e497059b7125bf5db4d6b2d53011;hpb=cc7a886a68dcd1b8bd87b933afdeced1d890a87e diff --git a/yarrg/where-vessels b/yarrg/where-vessels index eacde3a..6b1b0e2 100755 --- a/yarrg/where-vessels +++ b/yarrg/where-vessels @@ -1155,6 +1155,18 @@ proc draw {} { } +#---------- info toplevel ---------- + +proc info-toplevel-create {info title} { + toplevel $info + wm withdraw $info + wm title $info "where-vessels - $title" + wm protocol $info WM_DELETE_WINDOW [list wm withdraw $info] + + button $info.close -text Close -command [list wm withdraw $info] + pack $info.close -side bottom +} + #---------- parser error reporting ---------- proc parser-control-create {w base invokebuttontext etl_title} { @@ -1171,17 +1183,11 @@ proc parser-control-create {w base invokebuttontext etl_title} { pack $w.resframe -side top -expand y -fill both set eb .err_$base - toplevel $eb - wm withdraw $eb - wm title $eb "where-vessels - $etl_title" - wm protocol $eb WM_DELETE_WINDOW [list wm withdraw $eb] + info-toplevel-create $eb $etl_title label $eb.title -text $etl_title pack $eb.title -side top - button $eb.close -text Close -command [list wm withdraw $eb] - pack $eb.close -side bottom - frame $eb.emsg -bd 2 -relief groove label $eb.emsg.lab -anchor nw -text "Error:" text $eb.emsg.text -height 1