On Fri, 20 Feb 2004, B. Bogart wrote:
Hello all,
I've put my first version of "popup" the popup menu widget in CVS.
Its based on the button widget from GGEE, and has enherited some problems.
I have "sort of fixed" the GOP behaviour. Generally I think I still have to get up to date with how GOP is handled in pd. Currently every move of a GOP forces me to delete and recreate the widget.
Guenter
Its only lightly tested on linux, fairly tested on osx and untested on windows.
The biggest issues are: (which would help with other widget externals)
- It shows up in a GOP abstraction, but when you move the abstraction PD
can't find the widget path. (button from GGEE also does this)
- popup is messy about its width (dependant on font size!). Best
solution is to get the widget to report its size and fit the box accordingly. I know how to do this in tcl: [canvas] itemcget [tags] -width which does return the size in pixels, not characters. I would have fixed this already, but I don't know how to get the data from tcl/tk back to C, without it being treated as a method selector. (the output should not be bound to an outlet, but simply passed to an internal function that changes the box size) The result of this is the second outlet does not know where to be exactly!
Guenter, thanks for these examples and your help. I changed some code in the functions that draw the inlet and outlets by adding two tags, one for the particular outlet, and one for all the outlets. This way you can send one C command to erase all the outlets, rather than using a loop.
comments welcome.
Thanks all, Ben
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev