source: trunk/COULEURS/xpal.pro @ 2

Last change on this file since 2 was 2, checked in by opalod, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 21.1 KB
Line 
1; $Id$
2;
3; Copyright (c) 1992-1998, Research Systems, Inc.  All rights reserved.
4;       Unauthorized reproduction prohibited.
5;+
6; NAME:
7;       XPAL
8;
9; PURPOSE:
10;       comme xpalette mais plus court a ecrire et possede en plus
11;       une touche save qui (grace a la routine newpalette) permet de
12;       sauver la routine que l''on vient de faire. Rq qd on appuie
13;       sur la touche predefined appelle xlct plutot que xloadct
14;
15; CATEGORY:
16;       Color tables, widgets.
17;
18; CALLING SEQUENCE:
19;       XPAL
20;
21; INPUTS:
22;       No explicit inputs.  The current color table is used as a starting
23;       point.
24;
25; KEYWORD PARAMETERS:
26;       BLOCK:  Set this keyword to have XMANAGER block when this
27;               application is registered.  By default the Xmanager
28;               keyword NO_BLOCK is set to 1 to provide access to the
29;               command line if active command  line processing is available.
30;               Note that setting BLOCK for this application will cause
31;               all widget applications to block, not only this
32;               application.  For more information see the NO_BLOCK keyword
33;               to XMANAGER.
34;       UPDATECALLBACK: Set this keyword to a string containing the name of
35;               a user-supplied procedure that will be called when the color
36;               table is updated by XLOADCT.  The procedure may optionally
37;               accept a keyword called DATA, which will be automatically
38;               set to the value specified by the optional UPDATECBDATA
39;               keyword.
40;       UPDATECBDATA: Set this keyword to a value of any type. It will be
41;               passed via the DATA keyword to the user-supplied procedure
42;               specified via the UPDATECALLBACK keyword, if any. If the
43;               UPDATECBDATA keyword is not set the value accepted by the
44;               DATA keyword to the procedure specified by UPDATECALLBACK
45;               will be undefined.
46;
47; OUTPUTS:
48;       None.
49;
50; COMMON BLOCKS:
51;       COLORS: Contains the current RGB color tables.
52;       XP_COM: Private to this module.
53;
54; SIDE EFFECTS:
55;       XPAL uses two colors from the current color table as
56;       drawing foreground and background colors. These are used
57;       for the RGB plots on the left, and the current index marker on
58;       the right. This means that if the user set these two colors
59;       to the same value, the XPAL display could become unreadable
60;       (like writing on black paper with black ink). XPAL minimizes
61;       this possibility by noting changes to the color map and always
62;       using the brightest available color for the foreground color
63;       and the darkest for the background. Thus, the only way
64;       to make XPAL's display unreadable is to set the entire color
65;       map to a single color, which is highly unlikely. The only side
66;       effect of this policy is that you may notice XPAL redrawing
67;       the entire display after you've modified the current color.
68;       This simply means that the change has made XPAL pick new
69;       drawing colors.
70;
71;       The new color tables are saved in the COLORS common and loaded
72;       to the display.
73;
74; PROCEDURE:
75;       The XPAL widget has the following controls:
76;
77;       Left:   Three plots showing the current Red, Green, and Blue vectors.
78;
79;       Center: A status region containing:
80;               1) The total number of colors.
81;               2) The current color. XPAL allows changing
82;                  one color at a time. This color is known as
83;                  the "current color" and is indicated in the
84;                  color spectrum display with a special marker.
85;               3) The current mark index. The mark is used to
86;                  remember a color index. It is established by
87;                  pressing the "Set Mark Button" while the current
88;                  color index is the desired mark index.
89;               4) The current color. The special marker used in
90;                  color spectrum display prevents the user from seeing
91;                  the color of the current index, but it is visible
92;                  here.
93;
94;               A panel of control buttons, which do the following when
95;               pressed:
96;
97;               Done:   Exits XPAL.
98;
99;         Predefined:   Starts XLOADCT to allow selection of one of the
100;                       predefined color tables.
101;
102;               Help:   Supplies help information similar to this header.
103;
104;               Redraw: Completely redraws the display using the current
105;                       state of the color map.
106;
107;             Set Mark: Set the value of the mark index to the
108;                       current index.
109;
110;          Switch Mark: Exchange the mark and the current index.
111;
112;         Copy Current: Every color lying between the current
113;                       index and the mark index (inclusive) is given
114;                       the current color.
115;
116;          Interpolate: The colors lying between the current
117;                       index and the mark index are interpolated linearly
118;                       to lie between the colors of two endpoints.
119;                 save: permet de sauver la palette qui est
120;                       actuellement a l''ecran. Qd on appuie sur ce
121;                       bouton, un widget apparait qui demande:
122;                        1) le nom a donner a la palette que l''on veut sauver
123;                        2) le numero de la palette que l''on veut
124;                        eventuellement ecrase par la nouvelle
125;                        palette.Si aucun numero n''est specifie la
126;                        nouvelle palette estajoutee aux anciennes.
127;                        3) le nom du fichier qui contient les
128;                        palettes. Rq: suivre eventuellement les
129;                        indications fournis au prompteur.
130;               
131;
132;       Three sliders (R, G, and B) that allow the user to modify the
133;       current color.
134;
135;       Right:  A display which shows the current color map as a series of
136;               squares. Color index 0 is at the upper left. The color index
137;               increases monotonically by rows going left to right and top
138;               to bottom.  The current color index is indicated by a special
139;               marker symbol. There are 4 ways to change the current color:
140;                       1) Press any mouse button while the mouse
141;                          pointer is over the color map display.
142;                       2) Use the "By Index" slider to move to
143;                          the desired color index.
144;                       3) Use the "Row" Slider to move the marker
145;                          vertically.
146;                       4) Use the "Column" Slider to move the marker
147;                          horizontally.
148;
149; MODIFICATION HISTORY:
150;          addaptation de xpalette pour ajouter un bouton save par
151;          Gima Nicolas (nglod@ipsl.jussieu.fr) et par Masson
152;          Sebastien (smlod@ipsl.jussieu.fr)
153;-
154
155function XP_NEW_COLORS
156; Choose the best foreground and background colors for the current
157; color maps and set !P appropriately. Returns 1 if the colors changed,
158; 0 otherwise.
159  common xp_com, xpw, state
160
161  res = 0
162  junk = CT_LUMINANCE(dark=dark_col, bright=bright_col)
163
164  if (bright_col ne !p.color) then begin
165    !p.color = bright_col
166    res = 1
167  endif
168
169  if (dark_col ne !p.background) then begin
170    !p.background = dark_col
171    res = 1
172  endif
173
174  return, res
175end
176
177pro XP_ALERT_CALLER
178
179  common xp_com, xpw, state
180
181  ErrorStatus = 0
182  CATCH, ErrorStatus
183  if (ErrorStatus NE 0) then begin
184    CATCH, /CANCEL
185    v = DIALOG_MESSAGE(['Unexpected error in XPAL:', $
186                        '!ERR_STRING = ' + !ERR_STRING], $
187                        /ERROR)
188    return
189  endif
190  if (STRLEN(state.updt_callback) gt 0) then begin
191    if (PTR_VALID(state.p_updt_cb_data)) then begin
192      CALL_PROCEDURE, state.updt_callback, DATA=*(state.p_updt_cb_data)
193    endif else begin
194      CALL_PROCEDURE, state.updt_callback
195    endelse
196  endif
197end
198
199pro XP_XLCTCALLBACK
200  ; For visuals with static colormaps, update the graphics
201  ; after a change by XLOADCT.
202  if ((COLORMAP_APPLICABLE(redrawRequired) GT 0) and $
203        (redrawRequired GT 0)) then begin
204    XP_REDRAW
205  endif
206
207end
208
209pro XP_REDRAW
210
211  common xp_com, xpw, state
212
213  junk = XP_NEW_COLORS()
214  WIDGET_CONTROL, xpw.colorsel, set_value=-1
215  XP_REPLOT, !p.color, 'F'        ; Update the plots of RGB
216  ; Let the caller of XPAL know that the color table was modified
217  XP_ALERT_CALLER
218end
219
220
221
222pro XP_REPLOT, color_index, type
223; Re-draw the RGB plots. Type has the following possible values.
224;;      - 'D': Draw the data part of all three plots
225;       - 'F': draw all three plots
226;       - 'R': Draw the data part of the Red plot
227;       - 'G': Draw the data part of the Green plot
228;       - 'B': Draw the data part of the Blue plot
229
230  common xp_com, xpw, state
231  common colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr
232  common pscale, r_x_s, r_y_s, g_x_s, g_y_s, b_x_s, b_y_s
233
234  ; Update the plots of RGB
235  save_win = !D.WINDOW
236  wset, state.plot_win
237  save_p_region = !p.region
238  save_x_margin = !x.margin
239  save_y_margin = !y.margin
240  save_x_s = !x.s
241  save_y_s = !y.s
242  save_x_type = !x.type
243  save_y_type = !y.type
244
245  !y.margin= [2, 2]
246  !x.margin= [6, 2]
247
248  if (type eq 'F') then begin
249    !p.region = [0,.6667, 1, 1]
250    plot,xstyle=2, ystyle=3, yrange=[0, 260], r_curr, title='Red'
251    r_x_s = !x.s
252    r_y_s = !y.s
253
254    !p.region = [0,.333, 1, .6667]
255    plot,/noerase, xstyle=2,ystyle=3, yrange=[0, 260], g_curr, title='Green'
256    g_x_s = !x.s
257    g_y_s = !y.s
258
259    !p.region = [0,0, 1, .333]
260    plot,/noerase, xstyle=2,ystyle=3, yrange=[0, 260], b_curr, title='Blue'
261
262    b_x_s = !x.s
263    b_y_s = !y.s
264  endif else begin
265    if ((type eq 'D') or (type eq 'R')) then begin
266      !p.region = [0,.6667, 1, 1]
267      !x.s = r_x_s
268      !y.s = r_y_s
269      oplot, r_curr, color=color_index
270    endif
271    if ((type eq 'D') or (type eq 'G')) then begin
272      !p.region = [0,.333, 1, .6667]
273      !x.s = g_x_s
274      !y.s = g_y_s
275      oplot, g_curr, color=color_index
276    endif
277    if ((type eq 'D') or (type eq 'B')) then begin
278      !p.region = [0,0, 1, .333]
279      !x.s = b_x_s
280      !y.s = b_y_s
281      oplot, b_curr, color=color_index
282    endif
283  endelse
284
285  empty
286  WSET, save_win
287  !p.region = save_p_region
288  !x.margin = save_x_margin
289  !y.margin = save_y_margin
290  !x.s = save_x_s
291  !y.s = save_y_s
292  !x.type = save_x_type
293  !y.type = save_y_type
294
295end
296
297
298
299
300pro XP_CHANGE_COLOR, type, value
301; Change current color. Type has the following possible values.
302;       - 'R': Change the R part of the current color
303;       - 'G': ...
304;       - 'B': ...
305  common xp_com, xpw, state
306  common colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr
307
308
309  cur_idx = state.cur_idx
310
311  XP_REPLOT, !p.background, type
312
313  if (type eq 'R') then r_curr[cur_idx] = value;
314  if (type eq 'G') then g_curr[cur_idx] = value;
315  if (type eq 'B') then b_curr[cur_idx] = value;
316
317  tvlct, r_curr[cur_idx], g_curr[cur_idx], b_curr[cur_idx], cur_idx
318
319  if (XP_NEW_COLORS()) then begin
320    ; Highlight the current position using the marker
321    WIDGET_CONTROL, xpw.colorsel, set_value=-1  ; Re-initialize
322    XP_REPLOT, !p.color, 'F'
323  endif else begin
324    XP_REPLOT, !p.color, type
325  endelse
326
327  ; For visuals with static colormaps, update the graphics
328  ; of the current color.
329  if ((COLORMAP_APPLICABLE(redrawRequired) GT 0) and $
330        (redrawRequired GT 0)) then begin
331    ; Mark new square
332    tmp = !D.WINDOW
333    wset, state.cur_color_win
334    erase, color=state.cur_idx
335    wset, tmp
336  endif
337
338  ; Let the caller of XPAL know that the color table was modified
339  xp_alert_caller
340
341end
342
343
344
345
346
347
348
349pro XP_BUTTON_EVENT, event
350
351   common xp_com, xpw, state
352   common colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr
353
354                                ; NOTE: The value of these tags depend on the order of the buttons
355                                ;     in the base.
356   case (event.value) of
357
358                                ; DONE
359      0: begin
360         empty
361         r_orig = r_curr & g_orig = g_curr & b_orig = b_curr ;new orig color tbl
362         WIDGET_CONTROL, /DESTROY, event.top
363         !p = state.old_p
364      end
365
366                                ; PREDEFINED
367      1: xlct, /silent, group=xpw.base, UPDATECALLBACK='XP_XLCTCALLBACK'
368
369                                ; HELP
370      2: XDisplayFile, FILEPATH("xpal.txt", subdir=['help', 'widget']), $
371       TITLE = "Xpal Help", GROUP = event.top, WIDTH = 55, HEIGHT = 16
372
373                                ; REDRAW
374      3: XP_REDRAW
375
376                                ; SET MARK
377      4: begin
378         state.mark_idx = state.cur_idx
379         WIDGET_CONTROL, xpw.mark_label, $
380          set_value=strcompress(state.mark_idx, /REMOVE)
381      end
382
383                                ; SWITCH MARK
384      5 : if (state.mark_idx ne state.cur_idx) then begin
385         tmp = state.mark_idx
386         state.mark_idx = state.cur_idx
387         state.cur_idx = tmp
388         WIDGET_CONTROL, xpw.colorsel, set_value=tmp
389         WIDGET_CONTROL, xpw.idx_label, $
390          set_value=strcompress(state.cur_idx, /REMOVE)
391         WIDGET_CONTROL, xpw.mark_label, $
392          set_value=strcompress(state.mark_idx, /REMOVE)
393      endif
394
395                                ; COPY CURRENT
396      6 : begin
397         do_copy:
398         cur_idx = state.cur_idx
399         if (state.mark_idx le cur_idx) then begin
400            s = state.mark_idx
401            e = cur_idx
402         endif else begin
403            s = cur_idx
404            e = state.mark_idx
405         endelse
406         n = e-s+1
407         XP_REPLOT, !p.background, 'D'
408         if (event.value eq 6) then begin
409            r_curr[s:e] = r_curr[cur_idx]
410            g_curr[s:e] = g_curr[cur_idx]
411            b_curr[s:e] = b_curr[cur_idx]
412         endif else begin       ; Interpolate
413            scale = findgen(n)/float(n-1)
414            r_curr[s:e] = r_curr[s] + (fix(r_curr[e]) - fix(r_curr[s])) * scale
415            g_curr[s:e] = g_curr[s] + (fix(g_curr[e]) - fix(g_curr[s])) * scale
416            b_curr[s:e] = b_curr[s] + (fix(b_curr[e]) - fix(b_curr[s])) * scale
417         endelse
418         tvlct, r_curr[s:e], g_curr[s:e], b_curr[s:e], s
419         if (XP_NEW_COLORS()) then begin
420            WIDGET_CONTROL, xpw.colorsel, SET_VALUE=-1
421            XP_REPLOT, !p.color, 'F'
422         endif else begin
423            XP_REPLOT, !p.color, 'D'
424         endelse
425                                ; Let the caller of XPAL know that the color table was modified
426         xp_alert_caller
427      end
428
429      7: goto, do_copy
430      8: BEGIN
431         COMMON basecommon,  bas212, bas222,  bas232
432         base = WIDGET_BASE(/COLUMN, /FRAME)
433         bas1 = WIDGET_LABEL(base, value = 'Save')
434         bas2 = WIDGET_BASE(base, /COLUMN)
435         bas21 = WIDGET_BASE(bas2, /COLUMN)
436         bas211 = WIDGET_LABEL(bas21, value = 'Palette Name : ')
437         bas212 = WIDGET_TEXT(bas21, value = 'Noname', /editable)
438         bas22 = WIDGET_BASE(bas2, /COLUMN)
439         bas221 = WIDGET_LABEL(bas22, value = ' Overwrite palette number : ')
440         bas222 = WIDGET_TEXT(bas22, value = '', /editable)
441         bas23 = WIDGET_BASE(bas2, /COLUMN)
442         bas231 = WIDGET_LABEL(bas23, value = 'file name : ')
443         bas232 = WIDGET_TEXT(bas23, value = 'palette.tbl', /editable)
444         bas3 = WIDGET_BASE(base, /ROW)
445         ok = WIDGET_BUTTON(bas3, value = 'OK',$
446                            /ALIGN_LEFT, /FRAME, UVALUE = 'ok')
447         cancel = WIDGET_BUTTON(bas3, value = 'CANCEL',$
448                                /ALIGN_RIGHT, /FRAME, UVALUE = 'cancel')
449         WIDGET_CONTROL, base, /REALIZE
450;         WIDGET_CONTROL, base, SET_UVALUE = drawID
451         XMANAGER,  'xp_button_event',  base
452
453
454
455      END
456      else:
457   endcase
458
459end
460
461
462PRO xp_button_event_event, ev
463COMMON basecommon,  bas212, bas222,  bas232
464  WIDGET_CONTROL, ev.id,  GET_UVALUE = uval
465  IF(TAG_NAMES(ev,  /STRUCTURE_NAME) EQ 'WIDGET_BUTTON')$
466  THEN BEGIN
467    CASE uval OF
468     'ok' :BEGIN
469        WIDGET_CONTROL, bas212, GET_VALUE = palname
470        WIDGET_CONTROL, bas222, GET_VALUE = over
471        WIDGET_CONTROL, bas232, GET_VALUE = fichname
472        if over[0] EQ '' then over = 255 ELSE over = long(over)
473         newpalette,palname[0], OVER = over[0], file = fichname[0]
474         WIDGET_CONTROL,  ev.top,  /DESTROY
475        END
476     'cancel': WIDGET_CONTROL,  ev.top,  /DESTROY
477    ENDCASE
478  ENDIF
479
480END
481
482
483
484
485
486pro XP_EVENT, event
487
488   common xp_com, xpw, state
489   common colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr
490
491   case (event.id) of
492
493      xpw.button_base: XP_BUTTON_EVENT, event
494
495      xpw.rgb_base: begin
496         cur_idx = state.cur_idx
497         if (event.r ne r_curr[cur_idx]) then XP_CHANGE_COLOR, "R", event.r
498         if (event.g ne g_curr[cur_idx]) then XP_CHANGE_COLOR, "G", event.g
499         if (event.b ne b_curr[cur_idx]) then XP_CHANGE_COLOR, "B", event.b
500      end
501
502      xpw.colorsel: begin
503         cur_idx = state.cur_idx
504         new_pos = event.value ne cur_idx
505                                ; Update the RBG sliders
506         if (event.value ne cur_idx) then begin
507            state.cur_idx = (cur_idx = event.value)
508            WIDGET_CONTROL, xpw.idx_label,  $
509             set_value=strcompress(cur_idx, /REMOVE_ALL)
510                                ; Mark new square
511            tmp = !D.WINDOW
512            wset, state.cur_color_win
513            erase, color=cur_idx
514            wset, tmp
515
516            WIDGET_CONTROL, xpw.rgb_base, $
517             set_value=[r_curr[cur_idx], g_curr[cur_idx], b_curr[cur_idx]]
518         endif
519      end
520
521      else:
522   endcase
523
524end
525
526
527
528
529
530
531
532pro XPAL, group=group, BLOCK=block, UPDATECALLBACK=updt_cb_name, $
533        UPDATECBDATA=updt_cb_data
534
535
536  common xp_com, xpw, state
537  common colors, r_orig, g_orig, b_orig, r_curr, g_curr, b_curr
538
539  IF N_ELEMENTS(updt_cb_name) EQ 0 THEN updt_callback="" $
540                                 ELSE updt_callback=updt_cb_name
541  IF N_ELEMENTS(updt_cb_data) GT 0 THEN p_updt_cb_data=PTR_NEW(updt_cb_data) $
542                                 ELSE p_updt_cb_data=PTR_NEW()
543
544  xpw = { xp_widgets, base:0L, $
545        colorsel:0L, mark_label:0L, idx_label:0L, button_base:0L, rgb_base:0L}
546
547  state = {old_p:!p, $                     ; Original value of !P
548           mark_idx:0, $                   ; Current mark index
549           cur_idx:0, $                    ; Current index
550           cur_color_win:0, $              ; Current Color draw window index
551           plot_win:0, $                   ; RGB plot draw window index
552           updt_callback: updt_callback, $ ; user-defined callback (optional)
553           p_updt_cb_data:p_updt_cb_data}  ; data for callback (optional)
554
555  if (XREGISTERED('XPAL')) then return      ; Only one copy at a time
556
557  IF N_ELEMENTS(block) EQ 0 THEN block=0
558
559  on_error,2              ;Return to caller if an error occurs
560
561  nc = !d.table_size            ;# of colors avail
562  if nc eq 0 then message, "Device has static color tables.  Can't modify."
563  if (nc eq 2) then message, 'Unable to work with monochrome system.'
564
565  state.old_p = !p              ;Save !p
566  !p.noclip = 1                 ;No clipping
567  !p.color = nc -1              ;Foreground color
568  !p.font = 0                   ;Hdw font
569  save_win = !d.window  ;Previous window
570
571  IF N_ELEMENTS(r_orig) LE 0 THEN BEGIN ;If no common, use current colors
572        TVLCT, r_orig, g_orig, b_orig, /GET
573        r_curr = r_orig
574        b_curr = b_orig
575        g_curr = g_orig
576        ENDIF
577
578  ; Create widgets
579  xpw.base=WIDGET_BASE(title='Xpal', /ROW, space=30)
580  ; This is a little tricky. Setting the managed attribute indicates
581  ; our intention to put this app under the control of XMANAGER, and
582  ; prevents our draw widgets from becoming candidates for becoming
583  ; the default window on WSET, -1. XMANAGER sets this, but doing it here
584  ; prevents our own WSETs at startup from having that problem.
585  WIDGET_CONTROL, /MANAGED, xpw.base
586
587  version = WIDGET_INFO(/VERSION)
588  if (version.style='Motif') then junk=510 else junk = 580
589  plot_frame = WIDGET_DRAW(xpw.base, xsize=200, ysize=junk)
590
591  c1 = WIDGET_BASE(xpw.base, /COLUMN, space=20)
592    status = WIDGET_BASE(c1, /COLUMN, /FRAME)
593      ncw = WIDGET_LABEL(WIDGET_BASE(status), /DYNAMIC_RESIZE)
594      xpw.idx_label = CW_FIELD(status, title='Current Index: ', value='0', $
595                               xsize=20, /STRING)
596      xpw.mark_label = CW_FIELD(status, title='Mark Index:    ', value='0', $
597                                xsize=20, /STRING)
598      c1_1 = widget_base(status, /ROW)
599        junk = WIDGET_LABEL(c1_1, value="Current Color: ")
600          cur_color = WIDGET_DRAW(c1_1, xsize = 125, ysize=50, /frame)
601    names = [ 'Done', 'Predefined', 'Help', 'Redraw', 'Set Mark', $
602                'Switch Mark', 'Copy Current', 'Interpolate', 'save']
603    xpw.button_base = CW_BGROUP(c1, names, COLUMN=3, /FRAME)
604    xpw.rgb_base = CW_RGBSLIDER(c1, /FRAME, /DRAG)
605
606    junk = WIDGET_BASE(xpw.base)        ; Responds to YOFFSET
607    if (version.style='Motif') then junk2=30 else junk2 = 50
608    xpw.colorsel = CW_COLORSEL(junk, yoffset=junk2)
609
610
611  state.cur_idx = 0
612  state.mark_idx = 0
613
614  ; Position RGB slider appropriately
615  WIDGET_CONTROL, xpw.rgb_base, SET_VALUE=[r_curr[0], g_curr[0], b_curr[0]]
616  WIDGET_CONTROL, /REALIZE, xpw.base
617
618  WIDGET_CONTROL, ncw, $
619        set_value='Number Of Colors: ' + strcompress(!d.n_colors, /REMOVE_ALL)
620  WIDGET_CONTROL, get_value=tmp, cur_color
621  state.cur_color_win = tmp
622  WIDGET_CONTROL, get_value=tmp, plot_frame
623  state.plot_win = tmp
624
625
626  ; Update the plots of RGB
627  junk = XP_NEW_COLORS()
628  XP_REPLOT, !p.color, 'F'
629
630  WSET, save_win
631
632  XMANAGER, 'Xpal', xpw.base, event_handler='XP_EVENT', group=group, $
633        NO_BLOCK=(NOT(FLOAT(block)))
634end
635
Note: See TracBrowser for help on using the repository browser.