Next: Selection Up: Creating Display Items Previous: Choosing the Orientation

 

Event Handling 

You can handle the events in a TList widget using the -browsecmd and -command options. The meanings of these two options are silimar to their meanings in other Tix widgets such as the ComboBox. Usually, the command specified by -browsecmd is called when the user clicks or drags the mouse over the items or presses the arrow keys. The command specified by -command is called when the user double-clicks or presses the Return key. These commands are called with one extra argument - the index of the currently ``active'' item, which is usually the item under the mouse cursor.


http://tix.sourceforge.net