From: Alexander S.K. <al...@be...> - 2004-07-06 06:26:57
|
2004-07-05 21:26 UTC+0300 Alexander Kresin <al...@be...> * source/menu_c.c ! EnableMenuItem() fixed * source/xml/hxmldoc.prg ! Some fixes * utils/designer/designer.prg * utils/designer/hformgen.prg * utils/designer/hctrl.prg * utils/designer/editor.prg * utils/designer/inspect.prg * Some changes for integrated Designer support + utils/designer/bldlib.bat + bat file to build designer.lib The above changes gives more possibilities for using the Designer as a module, integrated in your application. Most of PUBLIC variables are moved to the HDesigner class for to not interfere with other application variables and to avoid problems when the Designer() function is called repeatedly. There are two parameters, supplied to the Designer(). If you run it as a standalone application, you may specify: /n ( or -n ) - to create new blank form after starting ; /f formname ( -f formname ) - to open existing form. If you call it as a function ( integrated in your app ): Designer( "/n" ) - as above ; Designer( "/f",formname ) - as above ; cFormNew := Designer( "/s",cFormOld ) - to open a form, which is previously read to the 'cForm' variable. In this case all file operations ( open/save ) are disabled, the Designer can only to edit the passed form, and after closing the form it is closed itself and return the updated form. Regards, Alexander http://kresin.belgorod.su |