Ok, how does this look?<br><br>I was still unable to reproduce the clicking bug, but I changed the code to avoid the scenario that your stack trace seems to indicate as the problem, hopefully you won&#39;t see it any more.<br>
<br>Turns out I also have Tcl/Tk <a href="http://8.4.7.">8.4.7.</a>&nbsp; Don&#39;t know where I got the idea I had 8.5 installed.&nbsp; So it seems either the tcllib or the Tile/ttk widgets might be a good bet for the next revision to these dialogs.&nbsp; One goal here also I think is to eventually provide a good basis for further customization of the Pd environment and UI, which will of course require someone to delve in the C for some of it, although perhaps to the extent that some customization can be done in pure Tcl/Tk, C work can be avoided.&nbsp; <br>
<br>Thanks again,<br><br>David<br><br><br><div class="gmail_quote">On Tue, May 20, 2008 at 3:00 AM, Hans-Christoph Steiner &lt;<a href="mailto:hans@eds.org">hans@eds.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">
<div><br></div><div>Just tried your new version, very nice, I think it&#39;s sorted, except one tiny bug with the resizing of &quot;Add new startup command&quot;. &nbsp;I think you&#39;ll want to set a minimum window width, since you can resize it smaller and make the OK button disappear.</div>
<div><br></div><div>You might look into the Tile/ttk widgets, they are now included in Tcl/Tk 8.5. &nbsp;I&#39;d like to use 8.5 for Pd-extended 0.41, so they would be there. &nbsp;For example, a ttk::notebook could be used to host all of the pref panes into a single window.</div>
<div><br></div><div>About the error, I just dropped your <a href="http://u_main.tk" target="_blank">u_main.tk</a> into Pd-vanilla 0.41-4, so that uses the version of Tcl/Tk included with Mac OS X, <a href="http://8.4.7." target="_blank">8.4.7.</a> &nbsp;I have Tcl/Tk 8.4.18 installed, it might be using that. &nbsp;But I definitely don&#39;t have 8.5 &nbsp;Here&#39;s the error:</div>
<div><br></div><div>Startup panel:</div><div><br></div><div>can&#39;t use empty string as operand of &quot;+&quot;</div><div>can&#39;t use empty string as operand of &quot;+&quot;</div><div>&nbsp;&nbsp; &nbsp;while executing</div><div>&quot;expr {$height + $top}&quot;</div>
<div>&nbsp;&nbsp; &nbsp;(procedure &quot;ScrollBox::dbl_click&quot; line 8)</div><div>&nbsp;&nbsp; &nbsp;invoked from within</div><div>&quot;ScrollBox::dbl_click .gfxstub5b1230 dlg_Startup::edit dlg_Startup::add 65 45&quot;</div><div>&nbsp;&nbsp; &nbsp;(command bound to event)</div>
<div><br></div><div>Path pane:</div><div><br></div><div><div>can&#39;t use empty string as operand of &quot;+&quot;</div><div>can&#39;t use empty string as operand of &quot;+&quot;</div><div>&nbsp;&nbsp; &nbsp;while executing</div><div>
&quot;expr {$height + $top}&quot;</div><div>&nbsp;&nbsp; &nbsp;(procedure &quot;ScrollBox::dbl_click&quot; line 8)</div><div>&nbsp;&nbsp; &nbsp;invoked from within</div><div>&quot;ScrollBox::dbl_click .gfxstub5b1930 dlg_Path::edit dlg_Path::add 81 42&quot;</div>
<div>&nbsp;&nbsp; &nbsp;(command bound to event)</div></div><div><br></div><div>.hc</div><div><div></div><div class="Wj3C7c"><div><br></div><div><br></div><div><div>On May 20, 2008, at 8:32 AM, David Golightly wrote:</div><br><blockquote type="cite">
PS I was unable to reproduce that issue where you saw an error message from clicking on an empty cell.&nbsp; For me, clicking on empty cells just brought up the &quot;Add new item&quot; dialog.&nbsp; Could this be a difference of platform/TclTk version?&nbsp; I&#39;m running 8.5 on OS X 10.4.&nbsp; I&#39;d also like to get the specific error message if you can get it.<br>
 <br>Thanks,<br><br>David<br><br><div class="gmail_quote">On Mon, May 19, 2008 at 10:07 PM, David Golightly &lt;<a href="mailto:davigoli@gmail.com" target="_blank">davigoli@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 Here&#39;s a revised copy with a few minor changes (the &quot;startup flags&quot; field now expands to fill the window, you can resize the startup command popup arbitrarily).<br><br>I&#39;m wondering about the protocol of introducing dependencies in PD.&nbsp; It seems that BWidget gives us a widget that we can use for the listbox (<a href="http://tcllib.sourceforge.net/BWman/ListBox.html" target="_blank">http://tcllib.sourceforge.net/BWman/ListBox.html</a>), however, it&#39;s perhaps not distributed with older distributions of Tcl/Tk.&nbsp; BWidget is distributed with Tcllib, which is apparently a default library packaged with most installs of Tcl, <a href="http://wiki.tcl.tk/12099" target="_blank">http://wiki.tcl.tk/12099</a> says that it comes by default with the ActiveState distro, with .deb and .rpm packages, and it was installed by default on my Mac OS X 10.4 distribution.&nbsp; But it&#39;s not guaranteed to be installed with ALL distributions of Tcl/Tk - I just have no idea exactly how many users might lack it.<br>
 <br>Failing that, the popup should behave exactly as inline editing does, even though it looks a little strange.&nbsp; You can still use the keyboard to navigate: down, down, enter, type, enter, up, enter, esc...&nbsp; Just think of it as inline listbox editing with extra window chrome :)<div>
 <div></div><div><br> <br><br><div class="gmail_quote">On Mon, May 19, 2008 at 11:37 AM, Hans-Christoph Steiner &lt;<a href="mailto:hans@eds.org" target="_blank">hans@eds.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 <div><div> <div style="margin: 0px;"><br></div><div style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">Oops, found a little bug: &nbsp;double-clicking on an empty cell through up an error dialog. &nbsp;</font></div>
 <div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">Also, an idea: if you just draw that popup entry box just below the listbox with the OK button, add a Cancel button, then use &quot;pack forget&quot; when the user hits OK or Cancel. &nbsp;Just a thought. &nbsp;That mini-popup window is the only thing about these panels that is weird, I guess that why I still am thinking about how to ditch it.&nbsp;</font></div>
 <div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">.hc</font></div>
 <div><br></div></div><div><div></div><div><div><div>On May 19, 2008, at 7:09 PM, Hans-Christoph Steiner wrote:</div><br><blockquote type="cite"> <div><br></div><div>Looks good to me. &nbsp;This is already a massive improvement over what is there. &nbsp;I don&#39;t know if you are sick of working on it, but I thought I&#39;d throw a couple of minor ideas:</div>
 <div><br></div><div>- it would be useful if the &quot;startup flags&quot; entry widget would stretch with the resizing window. &nbsp;Then you could see more of those flags.</div><div><br></div><div>- perhaps the windows should open above the Pd window instead of the center of the screen? &nbsp;I think you can get that info using [winfo rootx .] and [winfo rooty .]</div>
 <div><br></div><div>.hc</div><br><div><div>On May 18, 2008, at 7:26 PM, David Golightly wrote:</div><br><blockquote type="cite">As requested, I&#39;ve put back the &quot;Edit&quot; and &quot;Delete&quot; buttons and added BackSpace as a Delete event for Mac OS X.&nbsp; I couldn&#39;t get Cmd-BackSpace to fire effectively, but perhaps someone knows something I don&#39;t about getting that to work.<br>
  <br><br><div class="gmail_quote">On Sun, May 18, 2008 at 7:15 AM, Hans-Christoph Steiner &lt;<a href="mailto:hans@eds.org" target="_blank">hans@eds.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  <div> <div><br></div><div>Very nice! &nbsp;The mouse/keyboard interactive is well done, I only worry that the buttons are now too sparse. &nbsp;I think delete and edit buttons would still be useful, maybe people don&#39;t use keyboard shortcuts at all.</div>
  <div><br></div><div>Also, on Mac OS X, Delete is not commonly used, so it would be good to also have BackSpace work for deleting. &nbsp;Or maybe Cmd-BackSpace since that is what is used for deleting in the Finder.</div><div>
 <br> </div><div><br></div><div>.hc</div><br><div><div><div></div><div><div>On May 18, 2008, at 9:46 AM, David Golightly wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div>A note on the latest changes: I removed all the list manipulation buttons and added the following bindings:<br>
  <br>- The list items can be re-ordered by drag-and-drop.<br>- Clicking on a list item allows you to edit it.<br> - Clicking anywhere else in the listbox allows you to add a new list item.<br>- You can also traverse the list using up and down arrow keys, then press &quot;Enter&quot; to change the selected item.<br>
  - Press &quot;Delete&quot; to delete the currently selected list item.<br> <br>I kept around the &quot;New...&quot; button, since it may not be immediately obvious to newbies how to add new things to the list.<br><br>I also removed the &quot;Save all settings&quot; button and folded its action in to the &quot;Apply&quot; command (and, by extension, the OK command).&nbsp; I played around with trying to get an in-place editable listbox control for the Startup dialog, but to no avail - it&#39;s apparently no trivial task in Tcl/Tk.&nbsp; Perhaps for a future revision.&nbsp; However, the popup dialog functions effective the same, as &quot;Enter&quot; will submit your edit and &quot;Esc&quot; will cancel; once you get used to it it shouldn&#39;t be much different.<br>
  <br>I&#39;m also now centering the dialog windows on the screen.&nbsp; I&#39;d like to do this also (especially) for the &quot;Properties&quot; dialogs that are used to edit GUI controls.&nbsp; Tk like to try and &quot;cascade&quot; new dialogs as they appear; this is too clever by half, and really annoying once if you do a lot of editing.&nbsp; But I&#39;ve only tested this centering behavior on my own Macbook 15&quot; screen, so it would be great if others could verify it&#39;s still usable on other screen sizes.<br>
  <br>One other thing: these dialogs can now be resized, but they appear at their minimum size, so you can&#39;t shrink them any further (you can only expand them).<br><br>Please let me know what you think and as always let me know if you run into any trouble!<br>
  <br>Thanks,<br>David<br><br><br><div class="gmail_quote">On Sat, May 17, 2008 at 6:06 PM, David Golightly &lt;<a href="mailto:davigoli@gmail.com" target="_blank">davigoli@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  Ok, with the path/startup dialogs, this is about the feature set I&#39;d like to end up with for now.&nbsp; Please, everyone, review it for usability &amp; obvious bugs, and if it looks good I&#39;ll submit it as a patch.<br>
  <br> Thanks,<br><font color="#888888"><br>David</font><div><div></div><div><br><br><br><div class="gmail_quote">On Tue, May 13, 2008 at 11:53 PM, Steffen Juul &lt;<a href="mailto:stffn@dibidut.dk" target="_blank">stffn@dibidut.dk</a>&gt; wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><div></div><div><br> On 14/05/2008, at 0.16, marius schebella wrote:<br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  David Golightly wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Keep in mind I&#39;m<br> still learning Tcl/Tk, so some of these ideas, while excellent, are a<br>
  little beyond my technical grasp at this point and may be improvements<br> that we make incrementally over time. &nbsp;Also, I have a limited amount of<br> my time to budget for this kind of work<br> </blockquote> <br> david,<br>
  if you spend 1 hour on coding and one hour on documenting of how to get<br> to that step, (instead of 2 hours coding), then the chance that more<br> people will be able to jump in is bigger. tcl/tk is new to most people.<br>
  being able to concentrate on design and ui aspects would make life<br> easier. the hard part is to get started.<br> </blockquote> <br></div></div> Especially since the names in Tk are to my experience somewhat different to what one put in the search bar, ie. of my/your(?)/normal vocabulary.<br>
  <br> Example: tabs ~= notebook. See <a href="http://wiki.tcl.tk/2298" target="_blank">http://wiki.tcl.tk/2298</a><br> </blockquote></div><br> </div></div></blockquote></div><br></div></div><div><div style="margin: 0px;">
  _______________________________________________</div><div style="margin: 0px;"><a href="mailto:PD-list@iem.at" target="_blank">PD-list@iem.at</a> mailing list</div><div style="margin: 0px;">UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a></div>
  </div></blockquote></div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
  <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
  <br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers.&nbsp; &nbsp;&nbsp; &nbsp;- General Smedley Butler</div>
  <br></span></span> </div><br></div></blockquote></div><br><span>&lt;<a href="http://u_main.tk" target="_blank">u_main.tk</a>&gt;</span></blockquote></div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
 <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
 <br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>&quot;[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity.&quot;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;-John Gilmore</div>
 <br></span></span> </div><br></blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
 </span><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br></div><div>----------------------------------------------------------------------------<br></div><div><br></div><div>&quot;It is convenient to imagine a power beyond us because that means we don&#39;t have to examine our own lives.&quot;, from &quot;The Idols of Environmentalism&quot;, by Curtis White</div>
 <div><br></div><div><br></div><br></div></span> </div><br></div><br>_______________________________________________<br> <a href="mailto:PD-list@iem.at" target="_blank">PD-list@iem.at</a> mailing list<br> UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
 <br></blockquote></div><br> </div></div></blockquote></div><br></blockquote></div><br></div></div><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<br style="font-family: Tahoma;"></div><div>----------------------------------------------------------------------------<br style="font-family: Tahoma;"></div><div><br></div><div>Man has survived hitherto because he was too ignorant to know how to realize his wishes.&nbsp;&nbsp;Now that he can realize them, he must either change them, or perish. &nbsp; &nbsp;-William Carlos Williams</div>
<br></span></span> </div><br></div></blockquote></div><br>