Thread Rating:
  • 426 Vote(s) - 2.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RecordGrid 行の背景色制御について
05-02-2013, 09:56 AM,
#1
Question  RecordGrid 行の背景色制御について
レコードグリッドの行の背景色制御ですが、

下記の例のように「Notified」の値の変動によって変わると思いますが

「Notified」のデータ抽出時のみの値で判断して、色を付けたいのですが可能でしょうか?

例:
{include "../../default/support/data-long.scurl"}

{define-proc public {notified rg:RecordGrid, r:Record, i:int}:#Background
{if {r.compare-field "Notified?", true} == 0 then
{return {Background.from-string "silver"}}
else
{return null}
}
}

{RecordGrid
record-source = records,
height = 10cm,
width = 13cm,
row-background-spec = notified
}


Messages In This Thread
RecordGrid 行の背景色制御について - by e.kou - 05-02-2013, 09:56 AM
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('893')