Looking at scrollers.factor, it looks like this was intended.. Factor's GUI
was developed mainly for the factor tools (listener, help browser etc.) so
the features they don't use might not implemented.

But you can kind of get it working with the following patch (creating the
headers gadget yourself and put it in a <pack>):
http://paste.factorcode.org/paste?id=3356

Cheers,
Jon

On Fri, Sep 19, 2014 at 8:51 PM, Georg Simon <georg.si...@auge.de> wrote:

> I had to put the table into a scroller to make my column-titles
> visible. The example below opens two windows. On my system the column
> title is only visible in the second window. Is that intended?
> ---------------------------------------------------------------------
> USING:
>     kernel models ui ui.gadgets.scrollers ui.gadgets.tables
>     ;
> IN: test-voc
>
> M: trivial-renderer column-titles
>     drop { "Text" }
>     ;
> : main ( -- )
>     [
>         { { "first line" } { "second line" } } <model>
>         trivial-renderer <table> "without scroller" open-window
>
>         { { "first line" } { "second line" } } <model>
>         trivial-renderer <table> <scroller> "with scroller" open-window
>         ]
>     with-ui
>     ;
> MAIN: main
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.  Video for Nerds.  Stuff that Matters.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to