Hello all:
I want to pop up a window when I click
on the right mouse in the listbox, would
anyone give me some idea how to implement this, please.
rgds
stewang
I want to pop up a window when I click
on the right mouse in the listbox, would
anyone give me some idea how to implement this, please.
rgds
stewang
Code:
button .b -text "button" -bg white -command newWindow
pack .b
proc newWindow {} {
toplevel .t
global lv
set lv {"test" "test"}
frame .t.listframe
listbox .t.listframe.namelist -listvariable lv
pack .t.listframe.namelist -side top
pack .t.listframe
}