In MARK+3 (src/db.lisp), quiet warning from SBCL about "Derived type conflicting...
[maxima.git] / interfaces / xmaxima / Utils / Misc.tcl
blobafc21df36bcd7ce05f2c0eadde21da9c830296f3
2 proc cIDEMenuCreatePopup {menu fun box} {
3 global tcl_platform
5 menu $menu -tearoff 0
6 if {$fun != ""} {eval $fun $menu}
8 bind $box <Button-3> [list tk_popup $menu %X %Y]
9 switch -exact -- $tcl_platform(platform) windows {
10 bind $box <Key-App> [list tk_popup $menu %X %Y]
12 return $menu
15 proc cIDECreateEvent {text label code} {
16 set z [winfo toplevel $text]
17 set event "<<[join $label -]>>"
18 bind $text $event $code
19 return [list event generate $text $event]