TNTmips

HOME

FREE PRODUCTS
  TNTlite
  TNTatlas
  TNTsim3D

DOWNLOADS
  Release Version
  Development Version
  FTP
  Language Kits
  Sample Geodata
  Reseller Resources
  Promotional

DOCUMENTATION
  Tutorials
  Technical Guides
  Quick Guides

SITE MAP


gendlg.sml


### gendlg.sml
### Sample script for "Building Dialogs in SML"

# stub script to open demonstration dialogs generated from
# specifications in XML files.

### Global variable declarations
string xmlfile$, id$;

### call popup dialog allowing the user to select the XML
### file with the demonstration dialog; store full path and filename
### as "xmlfile$" and filename alone as "id$" 
xmlfile$= GetInputFileName("","Select dialog specification:","xml");
id$ = FileNameGetName(xmlfile$);

class XMLDOC dlgdoc;		# class instance for the XML document
dlgdoc.Read(xmlfile$);		# read the XML and parse into memory

class XMLNODE dlgnode;	# class instance for the dialog element
								# in the XML structure

dlgnode = dlgdoc.GetElementByID(id$);	# get the dialog element
													# from the XML structure

class GUI_DLG dlgwin;	# class instance for dialog window

dlgwin.SetXMLNode(dlgnode);	# set the XML dialog element as the
										# source for the dialog window

dlgwin.DoModal();					# open as a modal dialog


Back Home ©MicroImages, Inc. 2008 Published in the United States of America
11th Floor - Sharp Tower, 206 South 13th Street, Lincoln NE 68508-2010   USA
Business & Sales: (402)477-9554  Support: (402)477-9562  Fax: (402)477-9559
Business info@microimages.com  Support support@microimages.com  Web webmaster@microimages.com

20 May 2008

page update: 14 Aug 07