It's real fun to program with the newLISP-gui-server :-) and the resulting source is really short . I would get rid of some ugly lines with a construct like this:
( gs:myframe xorg 10% yorg 10% xwidth 80% yheight 80% )
Instead of absolut-graphic-sizes relative sizes would be great .
eg. here relative to the screen, but relative to the canvas and so on would also be helpful ...
I think this could be my first case for a macro - the % sign is a bit luxury but easier to understand - don't know if it will cost too much .
Is it possible to make gs:xxxx macros ?
relative sizes in gs-commandos
Yes, of course you can make macros from gs:xxx functions, just like you would with any other function. In some cases you may even want to modify/extend/rewrite an exisiting gs:xxx function to your own purpose.
Look into the source of guiserve.lsp and you will see that the guiserver.lsp layer is just a very thin wrapper to hide network communications from the user.
When you use 'map' or 'apply' on a gs:xxx function always prefix it with a quote, like in (apply 'gs:button ParamList). In most cases omitting the quote will do no harm, but if symbol translation/creation is performed this makes sure that the applied or mapped gs:xxx function gets executed inside the gs context.
Lutz
Look into the source of guiserve.lsp and you will see that the guiserver.lsp layer is just a very thin wrapper to hide network communications from the user.
When you use 'map' or 'apply' on a gs:xxx function always prefix it with a quote, like in (apply 'gs:button ParamList). In most cases omitting the quote will do no harm, but if symbol translation/creation is performed this makes sure that the applied or mapped gs:xxx function gets executed inside the gs context.
Lutz