[Factor-talk] Table Heading

2017-06-19 Thread Alexander Ilin
Hello! I'm looking at the Inspector code in `ui.tools.inspector`, and I can't see how it adds the heading to the Contents table. I'm making a table, and I want it to have column headings, much like the Inspector has for "Key" and "Value". I have overridden the `column-titles` method of my

Re: [Factor-talk] Table Heading

2017-06-19 Thread Alexander Ilin
Hello again! For some reason, the column headers appeared when I removed { 3 3 } from the table. I don't understand what the interaction here is. If someone could share an insight, I'd appreciate it. Thanks! 19.06.2017, 20:14, "Alexander Ilin" : > Hello! > >   I'm looking at the Inspecto

[Factor-talk] Word Wrapping

2017-06-19 Thread Alexander Ilin
Hello! Do we have a control that performs word-wrapping of its contents dynamically based on its current pixel width? I noticed that even the Help Browser has fixed-width paragraphs, not adjusted to the window width. And it manages to perform word wrapping with a non-monospaced font, i.e. b

Re: [Factor-talk] Word Wrapping

2017-06-19 Thread John Benediktsson
The ``ui.gadgets.paragraphs:paragraph`` does the wrapping. 300 dup [ 100 [ "hello " write ] times ] with-output-stream* gadget. On Mon, Jun 19, 2017 at 12:01 PM, Alexander Ilin wrote: > Hello! > > Do we have a control that performs word-wrapping of its contents > dynamicall

Re: [Factor-talk] Word Wrapping

2017-06-19 Thread Alexander Ilin
Perfectissimo! Thank you! 20.06.2017, 02:12, "John Benediktsson" :The ``ui.gadgets.paragraphs:paragraph`` does the wrapping.     300 dup [        100 [ "hello " write ] times    ] with-output-stream* gadget.   On Mon, Jun 19, 2017 at 12:01 PM, Alexander Ilin wrote:Hello!  Do we

Re: [Factor-talk] Table Heading

2017-06-19 Thread John Benediktsson
I believe column headers are only added automatically for tables that are in a ``ui.gadgets.scrollers:scroller``. You can see in where the code calls ``viewport-column-header``. Without seeing your code, I'm not sure why (aside from "being contained by a border not a scroller") the column he