Thread Rating:
  • 289 Vote(s) - 2.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RecordGridのヘッダーについて
07-20-2011, 11:38 AM, (This post was last modified: 07-20-2011, 11:46 AM by FusionChii.)
#1
RecordGridのヘッダーについて
RecordGrid のヘッダー部分の文字方向を回転させることはできるのでしょうか?
たとえば斜めにしたり、縦書きにしたりです。
Reply
07-21-2011, 11:44 AM, (This post was last modified: 07-21-2011, 03:47 PM by hmino.)
#2
RE: RecordGridのヘッダーについて
RecordGridのheader-specを使ってTextShapeなどを使用すれば可能ですよ。
古いバージョンだと違うやりかたになってしまいますがShapeを使うのがミソです。


Code:
{let people:RecordSet =
        {RecordSet
            {RecordFields
                {RecordField "First", domain = String},
                {RecordField "Last", domain = String},
                {RecordField "Age", domain = int}
            },
            {RecordData First = "John", Last = "Smith", Age = 25},
            {RecordData First = "Jane", Last = "Smith", Age = 29},
            {RecordData First = "Jane", Last = "Jones", Age = 28}
        }
    }
    {import * from  CURL.GUI.SHAPES}
    {define-proc public {make-header rgc:RecordGridColumn}:Graphic
        {return
            {TextShape
                "縦になるヘッダー",
                translation = {Distance2d 1.5cm, 1.5cm},
                rotation = 280deg
            }
        }
    }  
    {let rg:RecordGrid =
        {RecordGrid height = 5cm,
            record-source = people,
            width = 16cm,
            column-movable? = false,
            header-spec = make-header
        }
    }

    {value rg}

Reply

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('123')