<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="Georgia">Attached is something a bit closer to the
        target. It's not clear to me if the ToolBuilder is intended to
        do what you want here. I supports a subset of Morphic and sometimes
        even ignores its own specs, so it will solve some problems
        rather easily and others, perhaps, not at all. Remind me why you
        are interested in using the ToolBuilder.</font><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 11/3/17 5:07 PM, tim Rowledge wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:26C64144-695C-4796-9DC1-B7933B96448A@rowledge.org">
      <pre wrap="">Amongst other ‘fun’ issues, I can’t seem to spot how to make an input field have a sensible height - ie one that gives the chosen font decent room whilst not being far too large. (This is via ToolBuilder operations by the way, not raw morph access. )

If I make the panemorph of a dialogwindow have a vResizing of #shrinkWrap instead of the forced #rigid previously mentioned then I can set the listDirection to vertical and add an input field and a list and even get them is the right sort of places. Unfortunately there are then two curious problems:
a) the list size is stupid unless I force a minimumSize: XXX on the spec
b) the input field is 2 pixels high even if I *do* give it a minimumimum size.

I’d have thought it would make sense for an input field to default to a vertical size based on the font, since pretty much the by-definition purpose is to allow a single short line of text input. And similarly I would have thought that a list might benefit from an easy way to specify a minimum height (and may maximum?) based on a number of lines. 

What I’m trying to do now (getting well away from my original quest for a nicer snapshot/quit dialog) is make the typical users of pluggabledialog work even when the panemorph size is not fudged. It would be nice to have the ListChooser look good for a short list of senders/implementors (by shrinking vertically a bit) instead of the somewhat clunky (mis)use of the dialogwindow buttons - something that really ticks me when the code decides to make horizontal buttons instead of vertical. Also it would be nice for ListChooser to be able to grow a bit vertically when there is a long list to show, without going berserk and making a screen height monster.

Right now I’m thinking the dialog stuff needs some fairly serious rework. I don;t want to just tromp all over it a break other people’s stuff though, so if you’ve been using PluggableDialogWindow etc, let me know where/how/what-for. Or if you have idea for improving it.

tim
--
tim Rowledge; <a class="moz-txt-link-abbreviated" href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a class="moz-txt-link-freetext" href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a>
"Daddy, what does FORMATTING DRIVE C mean?"



</pre>
    </blockquote>
    <br>
  </body>
</html>