- Timestamp:
- 05/09/06 13:04:45 (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_miseenpage.pro
r49 r51 6 6 widget_control, event.top, get_uvalue=top_uvalue 7 7 ; 8 petitin = extractatt(top_uvalue, 'petitin')9 numdessinin = petitin[2]-110 petitout = extractatt(top_uvalue, 'petitout')8 smallin = extractatt(top_uvalue, 'smallin') 9 numdessinin = smallin[2]-1 10 smallout = extractatt(top_uvalue, 'smallout') 11 11 ; 12 12 if uval.name EQ 'undo' then begin … … 17 17 ; si on ne change pas le nombre de colonnes, on sort 18 18 if uval.name EQ 'column' then $ 19 if event.index+1 EQ petitin[0] THEN $19 if event.index+1 EQ smallin[0] THEN $ 20 20 return,{ID:event.handler, TOP:event.top, HANDLER:0L} 21 21 ; si on ne change pas le nombre de lignes, on sort 22 22 if uval.name EQ 'row' then $ 23 if event.index+1 EQ petitin[1] THEN $23 if event.index+1 EQ smallin[1] THEN $ 24 24 return,{ID:event.handler, TOP:event.top, HANDLER:0L} 25 25 ; … … 33 33 'clear': 34 34 'column':BEGIN 35 petitin = [event.index+1, petitin[1], 1]36 petitout = [event.index+1, petitout[1], 1]35 smallin = [event.index+1, smallin[1], 1] 36 smallout = [event.index+1, smallout[1], 1] 37 37 END 38 38 'row':BEGIN 39 petitin = [petitin[0], event.index+1, 1]40 petitout = [petitout[0], event.index+1, 1]39 smallin = [smallin[0], event.index+1, 1] 40 smallout = [smallout[0], event.index+1, 1] 41 41 END 42 42 endcase 43 nbredessin = petitin[0]*petitin[1]43 nbredessin = smallin[0]*smallin[1] 44 44 ; 45 45 ; on remet tout a 0 en ce qui concerne les postscripts 46 createhistory, event.top, petitin46 createhistory, event.top, smallin 47 47 ; 48 48 options = extractatt(top_uvalue, 'options') … … 59 59 ; actualisation de la top_uvalue... 60 60 ; 61 *top_uvalue[1, findline(top_uvalue, ' petitin')] = petitin62 *top_uvalue[1, findline(top_uvalue, ' petitout')] = petitout61 *top_uvalue[1, findline(top_uvalue, 'smallin')] = smallin 62 *top_uvalue[1, findline(top_uvalue, 'smallout')] = smallout 63 63 ; 64 64 *top_uvalue[1, findline(top_uvalue, 'penvs')] = replicate(!p, nbredessin) … … 108 108 end 109 109 ;********************************************************************* 110 FUNCTION cw_miseenpage, parent, petit, UVALUE = uvalue, UNAME = uname, ROW = row, COLUMN = column, UNZOOM = unzoom, _extra = ex110 FUNCTION cw_miseenpage, parent, small, UVALUE = uvalue, UNAME = uname, ROW = row, COLUMN = column, UNZOOM = unzoom, _extra = ex 111 111 ; cheking exclusive keywords 112 112 column = keyword_set(column)*(1-keyword_set(row)) … … 121 121 , UVALUE = uvalue, UNAME = uname, _extra = ex) 122 122 ;------------------------------------------------ 123 IF n_elements( petit) eq 0 then petit= [1, 1, 1]123 IF n_elements(small) eq 0 then small = [1, 1, 1] 124 124 basedroplist = widget_base(base, /column, /align_center) 125 125 id=widget_droplist(basedroplist, value=strtrim(indgen(10)+1, 1), title ='column' $ 126 126 , uvalue ={name:'column'}, uname='column') 127 widget_control, id, set_droplist_select = petit[0]-1127 widget_control, id, set_droplist_select = small[0]-1 128 128 id=widget_droplist(basedroplist, value=strtrim(indgen(10)+1, 1), title =' row ' $ 129 129 , uvalue ={name:'row'}, uname='row') 130 widget_control, id, set_droplist_select = petit[1]-1130 widget_control, id, set_droplist_select = small[1]-1 131 131 basebutton = widget_base(base, /column, /align_center) 132 132 rien = widget_button(basebutton, value = 'Clear', uvalue ={name:'clear'}, uname='clear')
Note: See TracChangeset
for help on using the changeset viewer.