<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />2x2の分割表を手動で作成して見栄えを良くしようとしていますしかし、表示ボックスの操作、特にテキストの太字や中央揃えなどに苦労しています。私の主な不満は、文字列列ボックスの値を太字にしようとすることです(20行目)。
nw = New Window( "Custom Report",
Tab Box(
"Manual 2x2 Contingency",
V List Box(
H List Box(
V Center Box(
Border Box(
Text Box( "Mutant Test", <
<
<
<< bottom( 20 ), //adds some space especially when the title might be just a few characters
<< Left( 5 ),
<
<
)
),
V List Box(
H List Box(
Border Box(
Text Box( "Sequencing Test", <
<< set background color( 2 ),
<
<
<
<< Right( 50 ), //adds some visual space especially when the title might be just a few characters
<< sides( 15 )
)
),
Table Box(
String Col Box( "", {"Pos", "Neg"} ), //really wish these were bold!
Number Col Box( "Pos", {2225, 25} ), //would like borders or gridlines around just the numbers
Number Col Box( "Neg", {12, 2258} ) //would like borders or gridlines around just the numbers
),
Text Box( "" ), //visual space
Text Box( "" ), //visual space
Text Box( "" )//visual space
)
),
Outline Box( "Statistical Calculations", //add all the stats calculations and score confidence interval calculations
V List Box(
Table Box(
String Col Box( "Correlation Calculation",
{"Sensitivity / Positive Agreement", "Specificity / Negative Agreement", "Positive Predictive Value"}
),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Equation", {"a/a+c", "d/b+d", "a/a+b"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Value", {"98.9%", "99.5%", "99.5%"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Score Confidence Interval", {"blah", "blah", "97.2-99.9"} )
),
Text Box( "" ), //visual space
Text Box( "Note: Calculated according to CLSI EP12-A2", <
Text Box( "" ) //visual space
)
),
Outline Box( "McNemars", //add the stats for McNemar determine if continuity correction is needed.
V List Box(
Table Box(
String Col Box( "McNemar", {"Degrees of Freedom", "P Value", "Chi", "Continuity Correction"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Value", {"1", ".002", "blah", "yes"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Intelligent Blurb", {"duh", "<0.05 means something", "words", "due to b+d<25"} ),
),
)
),
)
)
);
StringColBox で太字スタイルを設定することはできないようです。 代わりに TextBox() を試すこともできますが、位置合わせを完璧にするのは困難です。
例 (29 行目から始まるテーブルボックス):
...
テーブルボックス(
テキストボックス( 「\!N\!tPos\!N\!tNeg」 、 <<フォントスタイルを設定する( "大胆な" ) 、 <<フォントサイズを設定する( 13 ) ) 、
//String Col Box( "", {"Pos", "Neg"} ), // これらが太字だったらよかったのに!
番号欄ボックス( 「ポス」 、 { 2225 、 25 } ) 、 //数字の周囲に枠線またはグリッド線を付けたい
番号欄ボックス( 「ネグ」 、 { 12 、 2258 } ) 、 //数字の周囲に枠線またはグリッド線を付けたい
<<行の境界線を設定する( 1 ) 、
<<列の境界線を設定する( 1 ) 、
<<シェードの見出しを設定する( 0 )
) 、
...