Menu

#47 Crosshairs off does not work in blt2.4x

open
nobody
None
5
2002-06-13
2002-06-13
Anonymous
No

In my application, I have a drop down menu with two
radiobuttons to turn on or turn off the crosshairs.

I can turn crosshairs on and off and toggle between
these two states when running blt2.4u, but I cannot turn
them off in blt2.4x. Below is a diff between my version
of graph5.tcl and the original version. I see that the
renamed file graph.tcl (was bltGraph.tcl) in .../library
has some changes in it, and maybe this is related.

Diff between graph5.tcl and graph5Test.tcl

81a82,99
>
> menubutton .plotOpts -relief raised -text PlotOpts \
> -borderwidth 3 -menu .plotOpts.m
> pack .plotOpts -side left -padx 4
> menu .plotOpts.m
> .plotOpts.m add radiobutton -label " CrossHairs On" \
> -command {
> Blt_Crosshairs $graph
> }
>
> .plotOpts.m add radiobutton -label " CrossHairs Off" \
> -command {
> $graph crosshairs off
> }
>
>
84c101,103
< .quit 1,0 -fill x
---
> .quit 1,0 -fill x \
> .plotOpts 1,1 -fill x
>
86c105
< Blt_Crosshairs $graph
---
> # Blt_Crosshairs $graph

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.