home products news downloads documentation support gallery online maps resellers search
TNTmips Downloads Menu

HOME

CONTACT US

CURRENT RELEASE
  TNT 2013

DEVELOPMENT VERSION
  TNT 2014

TNTmips Pro
PRIOR RELEASES
  TNT 2012

FREE SOFTWARE
  TNTmips Free
  TNTatlas
  TNTsdk

MORE DOWNLOADS
  HASP Key Driver
  Screen Recorder
  TNT Language Kits
  Sample Geodata
  TNT Scripts

DOCUMENTATION
  TNTmips Tutorials
  Tutorial Datasets
  Technical Guides
  Scripts
  Quick Guides

MORE INFO
  Download FAQs
  FTP
  Download Managers
  Find Reseller

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. 2013 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

25 March 2009

page update: 26 May 11