MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

GUIKit: How to set up a "tableHeader" in table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107361] GUIKit: How to set up a "tableHeader" in table
  • From: Andrey <andrey.siver at gmail.com>
  • Date: Wed, 10 Feb 2010 03:37:46 -0500 (EST)

Hello,

Where could I learn how to set up a "tableHeader" in the "table"
Widget?

There is a code in the documentation:

ref @ SetPropertyValue[{"myTableModel", "columnIdentifiers"},
  {"One", "Two", "Three"}]

(where ref is GUIKit`GUIObject like this:

ref = GUIRun[
  Widget["Panel", {
    Widget["ScrollPane", {
      "preferredSize" ->
       Widget["Dimension", {"width" -> 200, "height" -> 110}],
      "viewportView" -> Widget["Table", {
         "items" -> {{"a1", "b1", "c1"}, {"a2", "b2", "c2"}},
         PropertyValue["model", Name -> "myTableModel"]
         }, Name -> "myTable"]
      }]
    }]
  ]

)

But is it possible to set up the header via property set?

There is property "tableHeader" for "table" Widget but it's not
obvious how to set it up.

Regards,

-Andrey


  • Prev by Date: Re: Mathematical Symbol
  • Next by Date: Re: Bug? Analytical integration of cosines gets the sign wrong
  • Previous by thread: Re: Upright \[Micro] in AxesLabel
  • Next by thread: Re: GUIKit: How to set up a "tableHeader" in table