[PD] [PD-dev] text edit window title

Christof Ressi christof.ressi at gmx.at
Thu Jul 13 10:22:09 CEST 2017


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" <danomatika at gmail.com>
> An: pd-dev at 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-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>



More information about the Pd-list mailing list