pro qslider_cw_state__define @compile_opt.pro ; On error, return to caller ;+ ; NAME: ; qslider_cw_state__define ; PURPOSE: ; Defines the state structure for the qslider_cw compound widget ; CATEGORY: ; Compound widget qslider_cw ; CALLING SEQUENCE: ; state = {qslider_cw_state} ; INPUTS: ; parent scalar; type: long integer ; ID of the parent widget ; OUTPUTS: ; (state structure) ; PROCEDURE: ; The fields in the state structure are explained in href=qslider_cw= (compound widget) ; ; State structure ; The state structure is stored as user value to the first child widget. ; If the ID of the root widget is known the state can be retrieved by ; ; wid_child = widget_info( wid_root, /child) ; widget_control, wid_child, get_uvalue=state ; ; The state consist of the widget id of all widgets making up the compound widget ; ; MODIFICATION HISTORY: ; SEP-2001, Paul Hick (UCSD/CASS; pphick@ucsd.edu) tmp = {QSLIDER_CW_STATE, $ wid_value : 0L, $ ; First child (contains slider value) wid_minimum : 0L, $ ; Contains slider minimum wid_slider : 0L, $ ; Slider widget wid_maximum : 0L $ ; Contains slider maximum } ;- return & end