comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: multiple selections from a list

multiple selections from a list
type: item
description: Hi some days ago I've asked the German distributor of IDL if there exists a widget allowing multiple selections (likeWIDGEt_LIST, but with the possibility to select more than one entry). They could not help me. So I took the time to write a simple program just doing that. It's appended to this message. Hope it's useful, Karl ____________________________________________________________ __________________ __ ____ __ / // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922 / // /_/ // / University of Hannover fax: +49 511 - 762 2483 / // ____// / Institute for Photogrammetry / // / / / Nienburger Str.1 /_//_/ /_/ FRG 30167 Hannover 1 email: knipp@ipi.uni-hannover.de vvvvvvvvvvvvvvvvvvvvvvvvvv CUT HERE vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv ;+ ; pro wmx_msel, text, select, $ ; title=title, xpos=xpos, ypos=ypos, $ ; rtcode=rtcode ; ; WaveMenu/Widgets: set flags / multiple selection from list ; ------------------------------------------------------------ ------------------ ; START OF DESCRIPTION ; ; subroutine (c) IPI, Uni Hannover 02'94, modified 02'94 ; ; METHOD: using IDL-Widgets (registered) ; toggle-buttons ; press button to select item ; ; routine should run under IDL 3.0 or higher ; on SparcStations (SunOs) ; Pc's (MsWindows) ; ; ; INPUT PARAMETER: text string-array with text to select from ; select long-array with selection-index ; ; OUTPUT PARAMETER: select as defined in routine ; elements selected return ONE, the rest ZERO ; ; INPUT KEYWORDS : title title ["set flags"] ; x(y)pos window position (!upper left) [automatic] ; ; OUTPUT KEYWORDS : rtcode Return-code : 0 for o.k., -1 for ERROR ; ; EXAMPLE: ; ; wmx_msel, 'DEMO: ' + sindgen(32), select & print, select ; ; END OF DESCRIPTION ; ------------------------------------------------------------ ------------------ ;- ; ============================================================ ================= ; event handling routine of WMX_MSEL pro wmx_msel_event, event ; ----------------------------------------------------…
creator: knipp
date: 1994-02-01T17:55:32-00:00