i want to dynamically create some toggles. Where can i find the creation arguemts? some of them are easy to interpret, but some i don't understand
thanks in advance,
johnny
creation arguments for iemgui toggle
i want to dynamically create some toggles. Where can i find the creation arguemts? some of them are easy to interpret, but some i don't understand
thanks in advance,
johnny
i think now i have most:
#X obj 20 81 tgl 20 0 sendsymbol receivesymbol x:1920/y:350 23 10 0
11 -258113 -1 -204786 0 1;
means:
obj <posX><posY> <object_name> <size> <??> <sendsymbol> <receivesymbol><label><x offset><y offset><??font??><label size><backround_color><front_color><label_color> <??><??>
@Johnny-Mauser Hello....
This is the most amount of info I have found, apart from looking in the tcl code. I seem to remember that some creation arguments don't work for some objects. You might have to save the patch and then use normal messages to their receive function. Anyway... here it is.....
https://puredata.info/docs/developer/PdFileFormat
and scroll down to toggle.....
David.
@whale-av thanks! that link is perfectly what i was looking for!
It should be in the help patch for [tgl]
. I wrote a subpatch that shows and explains each creation argument.
@jancsika i also think it should be in the help patch. It should be in all the help patches of the GUI-objects.
EDIT: on the other hand it's a feature of dynamic patching and as I recall that is nowhere in the help patches..
@Johnny-Mauser I added it to the help patches for Pd-extended a long time ago, using the PDDP help patch template that was created by the Pd community. Those help patches are used in Pd-l2ork and Purr Data, too.
Just for reference, here is the content of the " tgl_creation_arguments" subpatch:
"tgl" can be called with 14 creation arguments. These are not "optional" - all parameters must be filled or the gui-bng will not instantiate correctly.
tgl creation arguments: Size Init sendName receiveName Label labelXOff labelYOff Font# fontSize bgColor foregroundColor LblColor initValue non-zeroValue
It's unclear what the Unknown value is for- it is necessary to have it so you can specify the non-zero value.
Oops! Looks like something went wrong!