Hello all,
after much struggling with trying to change toxy examples in order to get what I'm after I've decided to start coding my own GUI externals for the popup menu and the text entry.
I'm basing this code off of the GUI externals in GGEE (since they are closest to what I'm after, little vector drawing, mostely popping tk widgets into an external) This is going very well, only after a day of work. I do have a problem with the "button" gui object where it does GOP but if I try and move the GOP patch PD can't find the canvas id for the widget "bad window pathname ..." I had button print out the canvas id and it does match, so I guess GOP does something special with widget names? Any ideas on how to fix this? (my externals have little purpose without GOP!)
Also I want to create an array of t_symbols to store the popup menu options and am having issues. (ah pointers!) in my structure I have defined:
t_symbol* x_options[MAXOPTIONS];
and I'm trying to set the values in it with:
x->x_options[0] = atom_getsymbol(argv);
I think I'm missing an * somewhere, but my pointers are (very) rusty.
Any help would be appreciated!
Ben
PS: thanks for all the "dripping" suggestions, I've been able to modify Johannes suggestion to suit my needs.
On Wed, 18 Feb 2004, B. Bogart wrote:
widgets into an external) This is going very well, only after a day of work. I do have a problem with the "button" gui object where it does GOP but if I try and move the GOP patch PD can't find the canvas id for the widget "bad window pathname ..." I had button print out the canvas id and it does match, so I guess GOP does something special with widget names? Any ideas on how to fix this? (my externals have little purpose without GOP!)
Sorry, no idea yet, I probably will find the time to check what happens over the weekend. To debug it would be best to print the whole window path name of the button widget and compare it to the window path name PD sends to the GUI.
Guenter
Also I want to create an array of t_symbols to store the popup menu options and am having issues. (ah pointers!) in my structure I have defined:
t_symbol* x_options[MAXOPTIONS];
and I'm trying to set the values in it with:
x->x_options[0] = atom_getsymbol(argv);
I think I'm missing an * somewhere, but my pointers are (very) rusty.
Any help would be appreciated!
Ben
PS: thanks for all the "dripping" suggestions, I've been able to modify Johannes suggestion to suit my needs.
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
Hey Guenter,
As far as I can tell the window path used when creating the widget is the same path the GUI complains it cannot find when trying to move the gop abstraction. Perhaps pathnames to widgets inside gops have different IDs when outside them?
Thanks for these externals though, I paricularly like the 2D controller. Certainly jump started my development effort!
Ben
guenter geiger wrote:
On Wed, 18 Feb 2004, B. Bogart wrote:
widgets into an external) This is going very well, only after a day of work. I do have a problem with the "button" gui object where it does GOP but if I try and move the GOP patch PD can't find the canvas id for the widget "bad window pathname ..." I had button print out the canvas id and it does match, so I guess GOP does something special with widget names? Any ideas on how to fix this? (my externals have little purpose without GOP!)
Sorry, no idea yet, I probably will find the time to check what happens over the weekend. To debug it would be best to print the whole window path name of the button widget and compare it to the window path name PD sends to the GUI.
Guenter
Also I want to create an array of t_symbols to store the popup menu options and am having issues. (ah pointers!) in my structure I have defined:
t_symbol* x_options[MAXOPTIONS];
and I'm trying to set the values in it with:
x->x_options[0] = atom_getsymbol(argv);
I think I'm missing an * somewhere, but my pointers are (very) rusty.
Any help would be appreciated!
Ben
PS: thanks for all the "dripping" suggestions, I've been able to modify Johannes suggestion to suit my needs.
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev