By the way: how can I get a further sub window to take control of the main Tk window “what I call a form” (like a dialog window but also requires user input) and the controls should remains with this sub windows until the user has responded with an input, (I can create the sub window, but I don't know exactly how to keep the control focused on it ).
Do you mean a modal dialog? e.g. a dialog that keeps focus until the 'OK' or 'Cancel' buttons (or whatever buttons) are pressed and doesn't let the user input anything on the main window.
Also, try binding the double click event directly to the Icon, Label or whatever instead of to the TList, this should work equally as well. Just substitute $tk_form{output_list} with your Label widget, i.e. $tk_form{label}->bind(...). Then let me know if this doesn't work so we can work it out the hard way by figuring out which element of the TList was clicked, etc.
--
hiseldl
| [reply] [d/l] [select] |