Hello all,
I've managed to alter popup into a text entry widget, with some small issues. Like actually getting the damn chars out of the gui!
I'm still quite unclear about the best way to transfer data from the gui back to pd in an external. I still don't quite unstand how to use pd_bind, especially in the case where PD initiates the transfer of data, rather than tcl initiating a proc that passes data back to pd.
Can anyone show me the most simple example of how to use pd_bind (or something else) to attach the output of an arbitrary tcl command to a function? (This would also be very useful for getting tcl to report the size of a widget in order to change the size of the bounding box.)
Thanks in advance.
Ben
On Fri, 5 Mar 2004, B. Bogart wrote:
Can anyone show me the most simple example of how to use pd_bind (or something else) to attach the output of an arbitrary tcl command to a function? (This would also be very useful for getting tcl to report the size of a widget in order to change the size of the bounding box.)
Hi. In the current GUI, widget size is handled by the server, as is pretty much anything GUI-related. So pretty much any info you want on widgets can be accessed through C structs and such. Especially, if you need boundingbox info, there's a getrectfn() method in the t_widgetbehavior interface.
In impd I'm currently rewriting a lot of mixed C/Tcl code into a more clearly separated C part and Tcl part, with the Tcl part being a lot more autonomous, so that the most GUI-oriented parts all run in the client, in nonrealtime, while the stuff that really needs realtime actually gets a more comfortable scheduling. Nevertheless, the current C structures will stay that way for possibly a long time, for compatibility reasons.
Btw, if you want to show up at PureData Montréal, you're very much invited, even if you only do it using your teleportation stuff. In the latter case, all you have to do is say "help! I'm trapped inside this monitor!!! please someone get me out of this...!!!" so as to entertain an untold number of spectators. ;-)
________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju
hi Mathieu, Ben,
I think, Ben aims at writing his own getrectfn for a Pd class which talks to a Tk widget -- which is easy to find in (and clone from) the toxy/widget source, btw.
Krzysztof
Mathieu Bouchard wrote: ...
Hi. In the current GUI, widget size is handled by the server, as is pretty much anything GUI-related. So pretty much any info you want on widgets can be accessed through C structs and such. Especially, if you need boundingbox info, there's a getrectfn() method in the t_widgetbehavior interface.