hi all,
how can i show the arguments used in my gop abstraction. for example: [in /mementospdif 9 10], here i want to show 9 10 ($2, $3) in the name of a canvas or any other way?
pat
Hallo, patrick hat gesagt: // patrick wrote:
how can i show the arguments used in my gop abstraction. for example: [in /mementospdif 9 10], here i want to show 9 10 ($2, $3) in the name of a canvas or any other way?
You can use a [cnv] inside which is set to a name like "$1" or "$1." or similar.
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
Hi Patrick,
how can i show the arguments used in my gop abstraction. for example: [in /mementospdif 9 10], here i want to show 9 10 ($2, $3) in the name of a canvas or any other way?
you could use the $n (aka dollarg) object from the iemlibs, they spit out the creation arguments of an abstraction. they can then be used to change the name of a canvas or any other gui element, just create a message like [my-canvas label $1( .
hope this helps, thoralf.
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
Thoralf Schulze wrote:
Hi Patrick,
how can i show the arguments used in my gop abstraction. for example: [in /mementospdif 9 10], here i want to show 9 10 ($2, $3) in the name of a canvas or any other way?
you could use the $n (aka dollarg) object from the iemlibs, they spit out the creation arguments of an abstraction. they can then be used to change the name of a canvas or any other gui element, just create a message like [my-canvas label $1( .
but why would someone want to use an external if they can just use built ins ? what is wrong with [symbol $1] ?
mfg.adr. IOhannes
Hi Iohannes,
but why would someone want to use an external if they can just use built ins ? what is wrong with [symbol $1] ?
Nothing. But imagine browsing an incoming message inside an abstraction against its creation arguments - due to its inlet (which allows to choose what argument will be put out), this is pmuch easier with $n than with [symbol $x], which would probably involve some ugly makefilename hacks. Or so I thought a while ago ...
with kind regards, thoralf.
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com