About hmg.4

Moderator: Rathinagiri

Post Reply
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

About hmg.4

Post by Rossine » Mon Aug 15, 2011 5:10 pm

Hello friends,

You have a list of what remains to be developed / fixed so that one can use hmg.4 in production ?

Best Regards,

Rossine.

mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Post by mrduck » Mon Aug 15, 2011 8:05 pm

There are a lot... some are more "inner" some more "outer"...

with "outer" I mean, for example, the GET system, the handling of PICTURE... If you have some time it wuld be great if you could have a look.

For the "inner" I mean the internals of hmg4: some discussions already took place and some changes are about to be posted so it's better to wait for a while on this side..

One think to do, if you have experience with hmg3, is to try to convert some of your old code. We will see what it's missing for compatibility.

Francesco
Rossine wrote:Hello friends,

You have a list of what remains to be developed / fixed so that one can use hmg.4 in production ?

Best Regards,

Rossine.

mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Post by mrduck » Tue Aug 16, 2011 6:22 am

Rossine wrote: You have a list of what remains to be developed / fixed so that one can use hmg.4 in production ?
Some more:

- SELECT PRINTER is preprocessed badly, you can't have it in a function, for example, since it open the WITH OBJECT and doesn't close it.
Example:

Code: Select all

IF NeedPreview
 SELECT PRINTER xxx ;
 ORIENTATION xxx ;
 PAPERSIZE xxx 
 PREVIEW
ELSE
 SELECT PRINTER xxx ;
 ORIENTATION xxx ;
 PAPERSIZE xxx 
ENDIF
- DEFINE GRID .... (all on one line) is not present in hmg.ch

- ONSAVE and ONQUERYDATA is not implemented (was ever used by anyone?)

- WAIT WINDOW is not implemented

- PLAY WAVE [FROM RESOURCE] is not implemented

- SET NAVIGATION EXTENDED (what was it for ?)

There are some others that I already implemented and I need to commit, some other will require better understanding and general discussion

Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Post by Rossine » Tue Aug 16, 2011 12:50 pm

Hello Francesco,

Thanks for the explanation. Then I'll convert my system to hmg.4 and reports any problems encountered.

Many thank´s and Best regards,

Rossine.

mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Post by mrduck » Tue Aug 16, 2011 10:19 pm

Here part of my updated hmg.ch. I don't remember if I already pushed some of them in svn, and there are other small parts ... anyway, with these you may have your program compile, but not work......
the commands like window.release in codeblocks are not converted yet...

Code: Select all


/* HMG3 IMPLEMENTED COMMANDS */

#translate MODIFY [ PROPERTY ] [ CONTROL ] <Arg2> OF <Arg1> <Arg3> <Arg4> ;
=> ;
<Arg1>:<Arg2>:<Arg3> := <Arg4>


#command RELEASE WINDOW ALL  ;
 =>;
 quit

#command ADD ITEM <i> TO <n> OF <p> ;
   =>;
   <p>:<n>:addItem( <i> )

#command DELETE ITEM ALL FROM <n> OF <p> ;
   =>;
   <p>:<n>:deleteAllItems( )

#xcommand LOAD WINDOW <w> ;
=> ;
#define TEMPLATE <w> ;;
#include \<<w>.fmg\> ;;
#undef TEMPLATE

#xcommand LOAD WINDOW <ww> AS <w> ;
=> ;
#define TEMPLATE <w> ;;
#include \<<ww>.fmg\> ;;
#undef TEMPLATE

#xcommand <w>:<c>:<p:Activate,Center,Release,Maximize,Minimize,Restore,Show,Hide,SetFocus,Print,Capture> [()] => eval( {||<w>:<c>:<p>()})

#xcommand <w>:<p:Activate,Center,Release,Maximize,Minimize,Restore,Show,Hide,SetFocus,Print,Capture> [()] => eval( {||<w>:<p>()})

#xcommand <w>:<c>:<p:Refresh,SetFocus,DeleteAllItems,Release,Show,Save,Hide,Play,Stop,Close,Pause,Eject,OpenDialog,Resume,Action,OnClick,Append,Delete,Recall,ClearBuffer,DisableUpdate,EnableUpdate> [()] => eval( {||<w>:<c>:<p>()} )



/* HMG3 COMPATIBILITY COMMANDS ADDED AS DUMMY - THEY MUST BE IMPLEMENTED */

#translate WAIT WINDOW <Arg2> [NOWAIT] ;
=> ;

#translate WAIT CLEAR ;
=> ;

#translate PLAY WAVE <Arg2> [FROM RESOURCE] ;
=> ;

#translate SET NAVIGATION EXTENDED ;
=> ;


#xcommand ONSAVE        <value>   =>
#xcommand ONQUERYDATA   <value>   =>


Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Post by Rossine » Wed Aug 17, 2011 1:32 pm

Hi Francesco,

Thank you for this piece of code.

I'll get some code examples with hmg.3 and try to compile hmg.4

Best Regards,

Rossine.

Post Reply