home *** CD-ROM | disk | FTP | other *** search
- #
- # List callback info
- #
- # Multiple select by clicking on items
-
- xmList .list managed \
- -items "{Item 1} {Item 2} {Item 3}" \
- -itemCount 3 \
- -selectionPolicy multiple_select
- .list multipleSelectionCallback {
- puts stdout "Info from list callback:
- item: %item
- item position: %item_position
- selected items: %selected_items
- selected item count: %selected_item_count
- selection type: %selection_type"
- }
-