Thread Rating:
  • 311 Vote(s) - 2.74 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Table クラスで、セルを塗りつぶしたい
11-26-2013, 08:30 PM,
#2
RE: Table クラスで、セルを塗りつぶしたい
cell-prototype プロシージャを使うのがよさそうですね。

Code:
{def tbl = {Table
               cell-border-width=1pt,
               cell-border-style="sunken",
               cell-border-color="#aaaaff",
               columns = 5}}
{for i:int = 1 below 30 do
    def color =
        {if (i mod 4) != 0 then
            "aqua"
         else
            "white"
        }
    {tbl.add
        {cell-prototype
            background = color,
            i
        }
    }
}
{value tbl}


Messages In This Thread
RE: Table クラスで、セルを塗りつぶしたい - by umemura - 11-26-2013, 08:30 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1013')