bgiLoadGizmos

Loads and creates a complete GUI interface from an XML designer file. Takes filename (String). Returns collection ID, or 0 if file open failed.

BGI GUI

Parameters & Returns

Parameters

filename String

Returns

Int

Quick Summary

Loads and creates a complete GUI interface from an XML designer file. Takes filename (String). Returns collection ID, or 0 if file open failed.

Technical Exegesis...

Loads and creates a complete GUI interface from an XML designer file. Opens filename with ifstream. Reads entire file into string buffer. Creates GizmoCollection with unique ID from gizmoCollectionIDCount++. Parses <Dialog> tag to extract title, width, height, name, onClose attributes. Calls bgiCreateWindow() to create main dialog window. Stores dialog in collection as GizmoEntry.

Example

Example.bam
; No example implemented yet