- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_slider_pm.pro
r69 r114 136 136 ;---------------------------------------------------------------------- 137 137 FUNCTION decvalue, value 138 ; 139 compile_opt idl2, strictarrsubs 140 ; 138 141 a = float(value[0]) 139 142 return, strtrim(string(floor(a) + 0.1*indgen(10), format = '(f15.1)'), 2) … … 141 144 ;---------------------------------------------------------------------- 142 145 FUNCTION decind, value 146 ; 147 compile_opt idl2, strictarrsubs 148 ; 143 149 a = float(value[0]) 144 150 return, round(10*(a - floor(a))) ; !! computation accuracy … … 146 152 ;---------------------------------------------------------------------- 147 153 PRO cw_slider_pm_set_value, id, value 154 ; 155 compile_opt idl2, strictarrsubs 156 ; 148 157 sbid = widget_info(id, find_by_uname = 'SliderBar') 149 158 dcid = widget_info(id, find_by_uname = 'decimal') … … 195 204 ;---------------------------------------------------------------------- 196 205 FUNCTION cw_slider_pm_get_value, id 206 ; 207 compile_opt idl2, strictarrsubs 208 ; 197 209 sbid = widget_info(id, find_by_uname = 'SliderBar') 198 210 dcid = widget_info(id, find_by_uname = 'decimal') … … 203 215 ;---------------------------------------------------------------------- 204 216 FUNCTION cw_slider_pm_event, event 217 ; 218 compile_opt idl2, strictarrsubs 219 ; 205 220 widget_control, event.id, get_uvalue = uval 206 221 ; … … 237 252 , STRMINLEN = strminlen, VALUE = value, UVALUE = uvalue $ 238 253 , UNAME = uname, title = title, _extra = ex 254 ; 255 compile_opt idl2, strictarrsubs 256 ; 239 257 240 258 IF (N_PARAMS() NE 1) THEN MESSAGE, 'Incorrect number of arguments'
Note: See TracChangeset
for help on using the changeset viewer.