hi krzysztof, hi list,
i'm a bit confused about the widget definition files ... in order to load the a listbox with -listvariable, i tried to create a listbox.wid file, but i'm lost, trying to understand the setup.wid file ... you pointed out, the listvariable has to be defined before the listbox will be created ... how is it possible to do define this variable in advance? i'd appreciate any help ...
thanks a lot ... tim
i'm a bit confused about the widget definition files ... in order to load the a listbox with -listvariable, i tried to create a listbox.wid file, but i'm lost, trying to understand the setup.wid file ... you pointed out, the listvariable has to be defined before the listbox will be created ... how is it possible to do define this variable in advance? i'd appreciate any help ...
never mind, i figured out that the _whole_ .wid file will be executed at startup ...
cheers... tim
hi Tim,
Tim Blechmann wrote: ...
you pointed out, the listvariable has to be defined before the listbox will be created ... how is it possible to do define this variable in advance?
only said it should be unique. The -listvariable option creates the variable, if necessary.
...
never mind, i figured out that the _whole_ .wid file will be executed at startup ...
there are several blocks of .wid code, which are executed in a different context each:
file has been read -- it is pushed to the pdgui layer by the constructor of the oldest object using the file. This part should be used for procedure definitions, etc.
version) is executed once for every Pd [widget] object of the particular type -- it is pushed by the constructor of that object.
has been created and configured, i.e. whenever an invisible Pd object receives the 'vis' message.
receives the corresponding message.
Currently, the structure of a .wid file is positional
<setup> <header> <creator> <properties (options, arguments, and handlers)> <initializer>
Krzysztof