forked from EMsoft-org/EMsoft
-
Notifications
You must be signed in to change notification settings - Fork 7
/
EBSDDetectorWidget.pro
404 lines (336 loc) · 19.4 KB
/
EBSDDetectorWidget.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
;
; Copyright (c) 2013-2024, Marc De Graef Research Group/Carnegie Mellon University
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification, are
; permitted provided that the following conditions are met:
;
; - Redistributions of source code must retain the above copyright notice, this list
; of conditions and the following disclaimer.
; - Redistributions in binary form must reproduce the above copyright notice, this
; list of conditions and the following disclaimer in the documentation and/or
; other materials provided with the distribution.
; - Neither the names of Marc De Graef, Carnegie Mellon University nor the names
; of its contributors may be used to endorse or promote products derived from
; this software without specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
; USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
; ###################################################################
;--------------------------------------------------------------------------
; EMsoft:EBSDDetectorWidget.pro
;--------------------------------------------------------------------------
;
; PROGRAM: EBSDDetectorWidget.pro
;
;> @author Marc De Graef, Carnegie Mellon University
;
;> @brief Electron backscatter diffraction detector widget
;
;> @date 03/24/14 MDG 1.0 first attempt at detector widget
;--------------------------------------------------------------------------
pro EBSDDetectorWidget,dummy
;
;------------------------------------------------------------
; common blocks
common SEM_widget_common, SEMwidget_s
common SEM_data_common, SEMdata
common fontstrings, fontstr, fontstrlarge, fontstrsmall
common PointGroups, PGTHD, PGTWD, DG
common projections, mcxcircle, mcycircle, mpxcircle, mpycircle, mcSPxcircle, mcSPycircle, mpSPxcircle, mpSPycircle
;------------------------------------------------------------
; make sure that this program isn't already running
if (XRegistered("EBSDDetectorWidget") NE 0) then begin
print,'EBSDDetectorWidget is already running ... (if it is not, please restart your IDL session)'
return
end
;------------------------------------------------------------
; create the top level widget
SEMwidget_s.detectorbase = WIDGET_BASE(TITLE='Detector and Pattern Mode Widget', $
/COLUMN, $
XSIZE=810, $
/ALIGN_LEFT, $
/TLB_MOVE_EVENTS, $
EVENT_PRO='EBSDDetectorWidget_event', $
XOFFSET=SEMdata.Detectorxlocation, $
YOFFSET=SEMdata.Detectorylocation)
;------------------------------------------------------------
; create the two main columns
block0 = WIDGET_BASE(SEMwidget_s.detectorbase, $
XSIZE=800, $
/ALIGN_TOP, $
/ROW)
block1 = WIDGET_BASE(block0, $
XSIZE=350, $
/ALIGN_TOP, $
/COLUMN)
block2 = WIDGET_BASE(block0, $
XSIZE=440, $
/ALIGN_TOP, $
/COLUMN)
;------------------------------------------------------------
;------------------------------------------------------------
file1 = WIDGET_BASE(block1, /COLUMN, /FRAME, YPAD=8, XSIZE=340, /ALIGN_LEFT)
file2 = WIDGET_LABEL(file1, VALUE='Detector & Microscope Geometry', font=fontstrlarge, /ALIGN_LEFT, /FRAME)
; we'll create two columns, one with all the detector geometry parameters,
; the other with pattern variables, including Euler angles, Euler angle
; convention, origin position, display mode (background only or full pattern),
; energy filter window, ...
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detL = Core_WTextE(file2,'Scintillator Distance [micron]', fontstr, 250, 25, 10, 1, string(SEMdata.detL,format="(F9.2)"),'DETL','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.dettheta = Core_WTextE(file2,'Detector Tilt Angle [deg]', fontstr, 250, 25, 10, 1, string(SEMdata.dettheta,format="(F8.2)"),'DETTHETA','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detomega = Core_WTextE(file2,'Detector Omega Angle [deg]', fontstr, 250, 25, 10, 1, string(SEMdata.detomega,format="(F6.2)"),'DETOMEGA','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detdelta = Core_WTextE(file2,'Scintillator Pixel Size [micron]', fontstr, 250, 25, 10, 1, string(SEMdata.detdelta,format="(F7.2)"),'DETDELTA','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detnumsx = Core_WTextE(file2,'Number of pixels ', fontstr, 140, 25, 5, 1, string(SEMdata.detnumsx,format="(I4)"),'DETNUMSX','EBSDDetectorWidget_event')
SEMwidget_s.detnumsy = Core_WTextE(file2,' by ', fontstr, 30, 25, 5, 1, string(SEMdata.detnumsy,format="(I4)"),'DETNUMSY','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detxpc = Core_WTextE(file2,'PC [pixels] ', fontstr, 140, 25, 8, 1, string(SEMdata.detxpc,format="(F7.2)"),'DETXPC','EBSDDetectorWidget_event')
SEMwidget_s.detypc = Core_WTextE(file2,' , ', fontstr, 20, 25, 8, 1, string(SEMdata.detypc,format="(F7.2)"),'DETYPC','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detxs = Core_WTextE(file2,'Pixel coordinates', fontstr, 140, 25, 8, 1, string(SEMdata.detxs,format="(I4)"),'DETXS','EBSDDetectorWidget_event')
SEMwidget_s.detys = Core_WTextE(file2,' , ', fontstr, 20, 25, 8, 1, string(SEMdata.detys,format="(I4)"),'DETYS','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detxss = Core_WTextE(file2,'Sampling step sizes', fontstr, 140, 25, 8, 1, string(SEMdata.detxss,format="(F9.3)"),'DETXSS','EBSDDetectorWidget_event')
SEMwidget_s.detyss = Core_WTextE(file2,' , ', fontstr, 20, 25, 8, 1, string(SEMdata.detyss,format="(F9.3)"),'DETYSS','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detbeamcurrent = Core_WTextE(file2,'Beam current [nA]', fontstr, 140, 25, 10, 1, string(SEMdata.detbeamcurrent,format="(F9.2)"),'DETBEAMCURRENT','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detdwelltime = Core_WTextE(file2,'Dwell Time [mu s] ', fontstr, 140, 25, 10, 1, string(SEMdata.detdwelltime,format="(F9.2)"),'DETDWELLTIME','EBSDDetectorWidget_event')
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
SEMwidget_s.detalphaBD = Core_WTextE(file2,'Barrel distortion [x10^-10]', fontstr, 250, 25, 10, 1, string(SEMdata.detalphaBD,format="(F10.4)"),'DETALPHABD','EBSDDetectorWidget_event')
;file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
;vals = ['TSL', 'HKL']
;SEMwidget_s.EulerConvention = CW_BGROUP(file2, $
; vals, $
; /ROW, $
; /NO_RELEASE, $
; /EXCLUSIVE, $
; FONT=fontstr, $
; LABEL_LEFT = 'Euler phi1 Convention', $
; EVENT_FUNC ='EBSDevent', $
; UVALUE='EBSDEULERCONVENTION', $
; SET_VALUE=SEMdata.EulerConvention)
;------------------------------------------------------------
;file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_CENTER)
;vals = ['Background Only','Full Pattern']
;SEMwidget_s.BGmode = CW_BGROUP(file2, $
; vals, $
; /ROW, $
; /NO_RELEASE, $
; /EXCLUSIVE, $
; FONT=fontstr, $
; LABEL_LEFT = 'Pattern Mode', $
; EVENT_FUNC ='EBSDevent', $
; UVALUE='PATTERNMODE', $
; SET_VALUE=SEMdata.BGmode)
;------------------------------------------------------------
; min and max energy settings for filtered imaging
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_CENTER)
tvals = strarr(SEMdata.mcenergynumbin)
for i=0,SEMdata.mcenergynumbin-1 do begin
th = SEMdata.mcenergymin + float(i)*SEMdata.mcenergybinsize
tvals[i] = string(th,format="(F5.2)")
end
SEMdata.Eminsel = 0L
file3 = WIDGET_LABEL(file2, VALUE='Energy Min ', font=fontstr)
SEMwidget_s.EBSDminenergylist = WIDGET_DROPLIST(file2, $
EVENT_PRO='EBSDDetectorWidget_event', $
VALUE=tvals,$
UVALUE='EBSDMINENERGYLIST', $
/ALIGN_LEFT)
;WIDGET_CONTROL, set_droplist_select=SEMdata.Eminsel, SEMwidget_s.EBSDminenergylist
WIDGET_CONTROL, set_droplist_select=0, SEMwidget_s.EBSDminenergylist
SEMdata.Emaxsel = SEMdata.mcenergynumbin-1L
file3 = WIDGET_LABEL(file2, VALUE='Max ', font=fontstr)
SEMwidget_s.EBSDmaxenergylist = WIDGET_DROPLIST(file2, $
EVENT_PRO='EBSDDetectorWidget_event', $
VALUE=tvals,$
UVALUE='EBSDMAXENERGYLIST', $
/ALIGN_LEFT)
;WIDGET_CONTROL, set_droplist_select=SEMdata.Emaxsel, SEMwidget_s.EBSDmaxenergylist
WIDGET_CONTROL, set_droplist_select=SEMdata.mcenergynumbin-1, SEMwidget_s.EBSDmaxenergylist
;------------------------------------------------------------
;------------------------------------------------------------
;SEMwidget_s.EBSDpatternfilename = Core_WText(file1,'EBSD Output File Name', fontstr, 200, 25, 50, 1, SEMdata.EBSDpatternfilename)
;
;SEMwidget_s.EBSDgetpatternfilename = WIDGET_BUTTON(file1, $
; UVALUE='GETEBSDFILENAME', $
; VALUE='Set Output File Name', $
; EVENT_PRO='EBSDDetectorWidget_event', $
; SENSITIVE=1, $
; /ALIGN_LEFT, $
; /FRAME)
;------------------------------------------------------------
;------------------------------------------------------------
; this box defines the pattern mode and the output file name
file1 = WIDGET_BASE(block2, /COLUMN, /FRAME, YPAD=8, XSIZE=430, /ALIGN_LEFT)
file2 = WIDGET_LABEL(file1, VALUE='Pattern Mode', font=fontstrlarge, /ALIGN_LEFT, /FRAME)
vals = ['Single Pattern','Angle File'] ; ,'Dictionary']
SEMwidget_s.Pmode = CW_BGROUP(file1, $
vals, $
/ROW, $
/NO_RELEASE, $
/EXCLUSIVE, $
FONT=fontstr, $
EVENT_FUNC ='EBSDevent', $
UVALUE='PMODE', $
SET_VALUE=SEMdata.Pmode)
;------------------------------------------------------------
;------------------------------------------------------------
file1 = WIDGET_BASE(block2, /COLUMN, /FRAME, YPAD=8, XSIZE=430, /ALIGN_LEFT)
file2 = WIDGET_LABEL(file1, VALUE='Single Pattern Parameters', font=fontstrlarge, /ALIGN_LEFT,/FRAME)
;----------
file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_CENTER)
SEMwidget_s.detphi1 = Core_WTextE(file2,'Euler [deg] phi1', fontstr, 120, 25, 8, 1, string(SEMdata.detphi1,format="(F6.2)"),'DETphi1','EBSDDetectorWidget_event')
SEMwidget_s.detphi = Core_WTextE(file2,' Phi', fontstr, 40, 25, 8, 1, string(SEMdata.detphi,format="(F6.2)"),'DETPhi','EBSDDetectorWidget_event')
SEMwidget_s.detphi2 = Core_WTextE(file2,' phi2', fontstr, 40, 25, 8, 1, string(SEMdata.detphi2,format="(F6.2)"),'DETphi2','EBSDDetectorWidget_event')
;file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_CENTER)
;SEMwidget_s.detax1 = Core_WTextE(file2,'axis', fontstr, 40, 25, 8, 1, string(SEMdata.detax1,format="(F6.2)"),'DETax1','EBSDDetectorWidget_event')
;SEMwidget_s.detax2 = Core_WTextE(file2,'', fontstr, 4, 25, 8, 1, string(SEMdata.detax2,format="(F6.2)"),'DETax2','EBSDDetectorWidget_event')
;SEMwidget_s.detax3 = Core_WTextE(file2,'', fontstr, 4, 25, 8, 1, string(SEMdata.detax2,format="(F6.2)"),'DETax3','EBSDDetectorWidget_event')
;SEMwidget_s.detax4 = Core_WTextE(file2,'angle [deg]', fontstr, 85, 25, 8, 1, string(SEMdata.detax4,format="(F6.2)"),'DETax4','EBSDDetectorWidget_event')
file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_CENTER)
SEMwidget_s.DisplayEBSD = WIDGET_BUTTON(file2, $
VALUE='Display Pattern', $
UVALUE='DISPLAYEBSD', $
EVENT_PRO='EBSDDetectorWidget_event', $
/ALIGN_LEFT, $
SENSITIVE=1, $
/FRAME)
vals = ['Off','On']
SEMwidget_s.circularmask = CW_BGROUP(file2, $
vals, $
/ROW, $
/NO_RELEASE, $
/EXCLUSIVE, $
FONT=fontstr, $
LABEL_LEFT='Circular Mask', $
EVENT_FUNC ='EBSDevent', $
UVALUE='CIRCULARMASK', $
SET_VALUE=SEMdata.showcircularmask)
;------------------------------------------------------------
;------------------------------------------------------------
file1 = WIDGET_BASE(block2, /COLUMN, /FRAME, YPAD=8, XSIZE=430, /ALIGN_LEFT)
file3 = WIDGET_BASE(file1, /ROW, /ALIGN_LEFT)
file2 = WIDGET_LABEL(file3, VALUE='Angle File Parameters', font=fontstrlarge, /ALIGN_LEFT,/FRAME)
SEMwidget_s.GoAngle = WIDGET_BUTTON(file3, $
VALUE='Go', $
UVALUE='GOANGLE', $
EVENT_PRO='EBSDDetectorWidget_event', $
SENSITIVE=0, $
/FRAME)
SEMwidget_s.EBSDanglefilename = Core_WText(file1,'Angle File Name', fontstr, 200, 25, 50, 1, SEMdata.EBSDanglefilename)
SEMwidget_s.EBSDgetanglefilename = WIDGET_BUTTON(file1, $
UVALUE='GETANGLEFILENAME', $
VALUE='Load Angle File', $
EVENT_PRO='EBSDDetectorWidget_event', $
SENSITIVE=0, $
/ALIGN_LEFT, $
/FRAME)
file2 = WIDGET_BASE(file1, /ROW, XSIZE=340, /ALIGN_LEFT)
SEMwidget_s.angletype = Core_WText(file2,'Angle Type', fontstr, 90, 25, 10, 1, SEMdata.angletype)
SEMwidget_s.numangles = Core_WText(file2,'# Angles ', fontstr, 80, 25, 10, 1, string(SEMdata.numangles,format="(I8)"))
; next, show a line with informational stuff, in particular the x*, y*, z* parameters in standard units of pattern width
file1 = WIDGET_BASE(SEMwidget_s.detectorbase, /ROW, /ALIGN_LEFT, /FRAME)
EBSD_updatePC
SEMwidget_s.xstar = Core_WText(file1,'x*', fontstr, 20, 25, 10, 1, string(SEMdata.xstar,FORMAT='(F6.4)'))
SEMwidget_s.ystar = Core_WText(file1,'y*', fontstr, 20, 25, 10, 1, string(SEMdata.ystar,FORMAT='(F6.4)'))
SEMwidget_s.zstar = Core_WText(file1,'z*', fontstr, 20, 25, 10, 1, string(SEMdata.zstar,FORMAT='(F6.4)'))
;------------------------------------------------------------
;------------------------------------------------------------
; and here is the Close button
file1 = WIDGET_BASE(SEMwidget_s.detectorbase, XSIZE=340, /ALIGN_LEFT, /ROW)
SEMwidget_s.DetectorClose = WIDGET_BUTTON(file1, $
UVALUE='CLOSEDETECTOR', $
VALUE='Close', $
EVENT_PRO='EBSDDetectorWidget_event', $
SENSITIVE=1, $
/FRAME)
; this part of the code is disabled for Release 3.0
j=0
if (j eq 1) then begin
;------------------------------------------------------------
;------------------------------------------------------------
file1 = WIDGET_BASE(block2, /COLUMN, /FRAME, YPAD=8, XSIZE=430, /ALIGN_LEFT)
file3 = WIDGET_BASE(file1, /ROW, /ALIGN_LEFT)
file2 = WIDGET_LABEL(file3, VALUE='Dictionary Parameters', font=fontstrlarge, /ALIGN_LEFT,/FRAME)
SEMwidget_s.GoDictionary = WIDGET_BUTTON(file3, $
VALUE='Go', $
UVALUE='GODICTIONARY', $
EVENT_PRO='EBSDDetectorWidget_event', $
SENSITIVE=0, $
/FRAME)
PGs = [ 'Select Point Group', '1 (C1) - no symmetry' , '-1 (Ci) - no symmetry ', $ ; [triclinic]
'2 (C2) - Cyclic', 'm (Cs) - Cyclic', '2/m (C2h) - Cyclic', $ ; [monoclinic]
'222 (D2) - Dihedral', 'mm2 (C2v) - Dihedral', 'mmm (D2h) - Dihedral', $ ;[orthorhombic]
'4 (C4) - Cyclic', '-4 (S4) - Cyclic', '4/m (C4h) - Cyclic', '422 (D4) - Dihedral', '4mm (C4v) - Dihedral', '-42m (D2d) - Dihedral', '4/mmm (D4h) - Dihedral', $ ; [tetragonal]
'3 (C3) - Cyclic', '-3 (C3i) - Cyclic', '32 (D3) - Dihedral', '3m (C3v) - Dihedral', '-3m (D3d) - Dihedral', $ ; [trigonal]
'6 (C6) - Cyclic', '-6 (C3h) - Cyclic', '6/m (C6h) - Cyclic', '622 (D6) - Dihedral', '6mm (C6v) - Dihedral', '-6m2 (D3h) - Dihedral', '6/mmm (D6h) - Dihedral', $ ; [hexagonal]
'23 (T) - Tetrahedral', 'm3 (Th) - Tetrahedral', '432 (O) - Octahedral', '-43m (Td) - Tetrahedral', 'm-3m (Oh) - Octahedral'] ; [cubic]
; FZtype
; 0 no symmetry at all
; 1 cyclic symmetry
; 2 dihedral symmetry
; 3 tetrahedral symmetry
; 4 octahedral symmetry
; first entry is a space filler
FZtarray = [0, 0,0,1,1,1,2,2,2,1,1,1,2,2,2,2,1,1,2,2,2,1,1,1,2,2,2,2,3,3,4,3,4 ]
FZoarray = [0, 0,0,2,2,2,2,2,2,4,4,4,4,4,4,4,3,3,3,3,3,6,6,6,6,6,6,6,0,0,0,0,0 ]
file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_LEFT)
file3 = WIDGET_LABEL(file2, VALUE='Point Group:', font=fontstr)
SEMwidget_s.PGdroplist = WIDGET_DROPLIST(file2, $
EVENT_PRO='EBSDDetectorWidget_event', $
VALUE=PGs,$
SENSITIVE = 0, $
UVALUE='DICTIONARYPG', $
/ALIGN_LEFT)
WIDGET_CONTROL, set_droplist_select=SEMdata.Dictpointgroup, SEMwidget_s.PGdroplist
file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_LEFT)
SEMwidget_s.Ncubochoric = Core_WTextE(file2,'N (# sampling points)', fontstr, 175, 25, 10, 1, string(SEMdata.Ncubochoric,format="(I4)"),'NCUBOCHORIC','EBSDDetectorWidget_event')
;file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_LEFT)
SEMwidget_s.EBSDdictfilename = Core_WText(file1,'Dictionary File Name', fontstr, 160, 25, 50, 1, SEMdata.EBSDdictfilename)
SEMwidget_s.EBSDgetdictfilename = WIDGET_BUTTON(file1, $
UVALUE='GETDICTFILENAME', $
VALUE='Set Dictionary File Name', $
EVENT_PRO='EBSDDetectorWidget_event', $
SENSITIVE=0, $
/ALIGN_LEFT, $
/FRAME)
file2 = WIDGET_BASE(file1, /ROW, XSIZE=430, /ALIGN_LEFT)
SEMwidget_s.GoDict = WIDGET_BUTTON(file2, $
VALUE='Create Dictionary', $
UVALUE='GODICT', $
EVENT_PRO='EBSDDetectorWidget_event', $
SENSITIVE=0, $
/FRAME)
SEMwidget_s.NinRFZ = Core_WText(file2,'# points in RFZ', fontstr, 125, 25, 10, 1, string(SEMdata.NinRFZ,FORMAT="(I10)"))
endif ; end disabled code for Release 3.0
;------------------------------------------------------------
; realize the widget structure
WIDGET_CONTROL,SEMwidget_s.detectorbase,/REALIZE
; and hand over control to the xmanager
XMANAGER,"EBSDDetectorWidget",SEMwidget_s.detectorbase,/NO_BLOCK
end