2 proc cIDEMenuCreatePopup
{menu fun box
} {
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
]
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]