Build SML Dialogs

building windows and dialogs

SML provides an easy method you can use to create custom dialog windows for your SML scripts. You can specify the controls and layout of the dialog in a structured text (XML) format. Explore the links below for background information and sample scripts that provide helpful examples of dialogs created in XML.

   Download File:  smlforms.dtd

areacalc.sml
areacalc.xml
The ""Area Unit Conversion"" window accepts numeric input (an input area), uses option menus to allow the user to select input and output area units, and computes an output value.
badid.xml
boxcar2.sml Script shows steps needed to create a sample application with a dialog window incorporating a view of geospatial data.
dlgtempl.xml
flowpath.xml
flowpatherrs.xml
helloXML1.sml
helloXML2.sml
hello.xml
helloXML2.sml
language.xml
nmcolor.xml
pansharpcomp.sml
TechGuideBuild SML Dialogs Using XML
Sample script that illustrates the use of a complex custom dialog window constructed using an XML dialog specification. The script computes a pan-sharpened color-composite image from three bands of a multispectral image and a higher-resolution panchromatic image.
procpts.xml
radiogroup.sml
radiogp.xml
Creates sample dialog with radiogroup of three buttons using an XML dialog specification.
sample.xml
selcomp.xml
tigerop.xml
tigrds.xml
VectorCombinationsDlg.sml Vector Combinations example with dialog.
view-rgb.sml Modified version of VIEW.SML to open and display RGB raster.
xmldlg.sml
test.xml
Sample script that creates a test dialog named ""This is a test"" from an dialog specification in an external XML file ""test.xml"". The dialog has several tabbed panels with examples of various available controls.

Building Dialogs in SML    Sample Data:  BigPine.rvc    Sample Data:  InyoTM.rvc    Documentation:  Building Dialogs in SML

bonjour1.sml
bonjour1.xml
Illustrates the use of callbacks for dialog controls.
bonjour2.sml
bonjour2.xml
Illustrates the use of dialog control callbacks in a script tag in the dialog specification.
drawdlg.sml Creates and opens a dialog window and uses a drawing area.
gendlg.sml Stub script to open demonstration dialogs generated from specifications in XML files.
getdata.sml
getdata.xml
Illustrates different available methods for reading values from a dialog.
view.sml Creates and opens a standard View window and displays a selected raster.
widget1.sml Creates and opens a simple dialog window using Motif Widget classes.
widget2.sml Example of setting up a dialog window with different types of widgets.

View Window

gamma.sml Adjust gamma of raster Uses a standard display window that shows side by side view of the original raster and results of modifications.
multrang.sml Quantize raster cell value to user defined ranges Uses a standard display window that shows side by side view of the original raster and results of modifications.
stddisp.sml Standard Display Interface Displays side by side copies to show before and after versions of raster.
View3d.sml 3D View Opens a 3D View<
page update: 11 Nov 2014