LOAD WINDOW
|
Load a window definition from a MiniGUI window definition file
SYNTAX
LOAD WINDOW
<WindowDefinitionFileName>
[ AT <row>, <col> ]
[ WIDTH <width> ]
[ HEIGHT <height> ]
[ AS <WindowName> ]
REMARKS
If you omit the AS clause, the window definition file name (without extension) is assumed as the window name.
A MiniGUI window definition file ('.fmg' file) is a text file containing a window definition, using standard minigui code, except the window name in the DEFINE WINDOW command (you must use TEMPLATE word instead).
EXAMPLE
Lets suppose that we want to create two instances (called Form_1 and Form_2) from a window definition stored in a file called 'BaseForm.fmg'
* Begin BaseForm.fmg
DEFINE WINDOW TEMPLATE;
AT 93,80 ;
WIDTH 550 ;
HEIGHT 350 ;
TITLE ''
@ 249,225 BUTTON button_11 ;
CAPTION 'button_11' ;
ACTION MsgInfo('Button Pressed') ;
WIDTH 100 ;
HEIGHT 28 ;
FONT 'Arial' ;
SIZE 10
END WINDOW
* End BaseForm.fmg
Then, in your program...
LOAD WINDOW BaseForm AS Form_1
LOAD WINDOW BaseForm AS Form_2
ACTIVATE WINDOW Form_1, Form_2
'.fmg' files are compatible with Ciro vargas Clemow's 'Harbour MiniGUI IDE+'
For more information see at \BASIC\MULTI-INSTANCE in samples package.