Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Solved this problem by creating a form with associated window and buttons as follows:</p> <pre><code>var stereo_form =new Ext.form.FormPanel({ id: "stereoInfo_panel", autoDestroy:true, labelWidth: 300, frame: true, width: 515, items:[{ xtype: 'textfield', fieldLabel: 'DEM Resolution (Enter between 0.002 - 0.1 metres)', name: 'resolution', regex: /^0[.](1|0[1-9][0-9]*|00[2-9][0-9]*)$/, regexText: 'Only values between 0.002 - 0.1 allowed', value: '0.005' //sets a default value },{ xtype: 'textfield', fieldLabel: 'Pyramid Level (Enter either 0 or 1)', regex: /^[0-1]$/, regexText: 'Only values of 0 or 1 allowed', name: 'matching', value: '0' //sets a default value },{ xtype: 'textfield', fieldLabel: 'Size of DEM (Enter between 0 - 50.00 metres)', name: 'size', value: '20.00' //sets a default value }], buttons: [{ text: 'Confirm', handler: function() { var values = stereo_form.getForm().getValues(); res = values.resolution; pyramid = values.matching; distance = values.size; user1 = "Resolution of DEM in X and Y directions (metres) = " + res; user2 = "Minimum (biggest) image pyramid level for matching (one level = img/2) = " + pyramid; user3 = "Maximum distance from camera to be reconstructed - Cartesian DEM only (metres) = " + distance; loadXMLDoc("/stereo_proc4.php?left="+leftrel_safe+"&amp;right="+rightrel_safe+"&amp;res="+res+"&amp;pyramid="+pyramid+"&amp;distance="+distance,state_Change); w.close(); } }] }); var w =new Ext.Window({ id: "stereoInfo_win", title: "Stereo Reconstruction Parameters", layout: 'form', height: 152, width: 515, items: stereo_form }); w.show(); w.focus(); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload