<html>
<head>
</head>
<body>
<br>
<br>
guenter geiger wrote:<br>
<blockquote type="cite" cite="mid:Pine.LNX.4.31.0402101841020.31381-100000@xdv.org">
  <pre wrap="">On Tue, 10 Feb 2004, B. Bogart wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">Hello All,<br><br>I'm still on that slow process of learning how one writes graphical<br>externals.<br><br>I was wondering if anyone has a very simple graphical external example?<br>Perhaps something that just creates a label widget, perhaps with a<br>property dialog to change the text therin?<br><br>I'm currently looking at the simplest graphical things I can find, which<br>are the iemgui objects, bang etc.. Are these now internals? Are they<br>written differently than if they were externals?<br></pre>
    </blockquote>
    <pre wrap=""><!----><br>Take a look at the even simpler graphical objects in pd, like the<br>numberbox and the "objects", the message boxes.<br>Basically you have to fill up the widgetbehaviour structure which<br>defines, well, the widgetbehaviour.<br>For the properties dialogs you will have to write some tcl/tk code<br>in u_main.tk (or you reuse the existing dialogs).<br>There is a third option of sending the  tcl/tk code from your external,<br>but this is pretty ugly.<br><br>I think I mentioned this before, and I am sure Krysztof did it too,<br>graphical externals written this way can cause performance problems. It<br>would be a lot better to reuse tcl/tk widgets, ...</pre>
    </blockquote>
yeh, it might be slower this way,<br>
but how can you insert your tcl/tk in u_main.tk<br>
( which is distributed with pd ) without ugly patches?<br>
    <br>
if your graphical updater runs in a thread, <br>
it works smoothly.<br>
    <br>
cheers,<br>
sevy<br>
    <blockquote type="cite" cite="mid:Pine.LNX.4.31.0402101841020.31381-100000@xdv.org">
      <pre wrap=""><br><br>Guenter<br><br><br><br>_______________________________________________<br>PD-dev mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:PD-dev@iem.at">PD-dev@iem.at</a><br><a class="moz-txt-link-freetext" href="http://iem.at/cgi-bin/mailman/listinfo/pd-dev">http://iem.at/cgi-bin/mailman/listinfo/pd-dev</a><br><br><br></pre>
      </blockquote>
      <br>
      </body>
      </html>