hi, for [text define] it would be really useful to show the name of the text buffer!
> Gesendet: Donnerstag, 13. Juli 2017 um 02:50 Uhr > Von: "Dan Wilcox" <danomat...@gmail.com> > An: pd-...@lists.iem.at > Betreff: [PD-dev] text edit window title > > I've noticed when opening the context of the text family of objects (qlist, > text, & textfile), the window title has what looks like dummy strings: > "myname: text". > > I think it would be more useful if the "myname" was the name of the parent > patch and the "text" part was the name of the calling object. > > So something like: mypatch.pd: qlist > > That would at least help in differentiating the windows beyond their contents. > > I did some poking around and can set the filename by changing the sys_vgui > call in textbuf_open: > > sys_vgui("pdtk_textwindow_open .x%lx %dx%d {%s: %s} %d\n", > x, 600, 340, "myname", "text", > ... > > to > > sys_vgui("pdtk_textwindow_open .x%lx %dx%d {%s: %s} %d\n", > x, 600, 340, x->b_canvas->gl_name->s_name, "text", > > I'm not sure how to replace the "text" dummy with the parent text object type > though. > > -------- > Dan Wilcox > @danomatika <http://twitter.com/danomatika> > danomatika.com <http://danomatika.com/> > robotcowboy.com <http://robotcowboy.com/> > > > > _______________________________________________ > Pd-dev mailing list > pd-...@lists.iem.at > https://lists.puredata.info/listinfo/pd-dev > _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list