Thread Rating:
  • 329 Vote(s) - 2.94 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RecordGridColumn の文字を太字ではなくさせたい
08-01-2011, 09:48 PM,
#2
RE: RecordGridColumn の文字を太字ではなくさせたい
header-spec を指定すれば普通の太さの文字列を表示できました。

Code:
{let people:RecordSet =
    {RecordSet
        {RecordFields
            {RecordField
                "First", caption = "First Name", domain = String
            },
            {RecordField
                "Last", caption = "Last Name", 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}
    }
}
{let header:RecordGridRowOptions =
    {RecordGridRowOptions
        font-weight = "normal",
        halign = "center"
    }
}
{define-proc public {make-header
                        rgc:RecordGridColumn
                    }:Graphic
    set rgc.halign = "center"
    {return
        {TextFlowBox
            font-weight = "normal",
            rgc.field.caption
        }
    }
}  
{let rg:RecordGrid =
    {RecordGrid
        ||header-options = header,
        header-spec = make-header,
        record-source = people
    }
}
{value rg}


しかし、なんで RecordGridRowOptions だと効果がないんでしょうかね?
直接RecordGridColun の中で指定してもダメでした。



Messages In This Thread
RE: RecordGridColumn の文字を太字ではなくさせたい - by umemura - 08-01-2011, 09:48 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('175')