<< Click to Display Table of Contents >>

OZUserActionCommand > ChangeComp

OZUserActionCommandのtypeのうち、ChangeCompはコンポーネントの属性値または描画タイプを変更する時に発生し、返されるattrは次の通りです。

attr

説明

backcolor

塗りつぶしの色(string)

RGB値で、"Red, Green, Blue"形式で返される

barcodeerroroption

バーコードのエラー表示オプション(string)

リターンする値:ShowErrorData、ShowErrorSize、ShowEmptyData

複数の値が全て選択された場合はカンマ(,)を区切り文字として返される

bottomframethickness

下側枠線の太さ(string)

charspace

文字間隔(string)

charttype

チャートタイプ(string)

Viewer関数中SetChartStyle関数のチャートタイプ表を参照

clip

クリッピング(string)

リターンする値:true、false

compindex

コンポーネントのインデックス(int)。 One-Based Index

compname

コンポーネント名(string)

comptype

コンポーネントタイプまたは描画タイプ(string)

コンポーネントプロパティの値を変更するとき:コンポーネントタイプ。メモは"label"として返されます

描画タイプを変更するとき:変更前後の描画タイプを"newvalue":{"comptype":"変更後の描画タイプ"}, "oldvalue":{"comptype":"変更前の描画タイプ"}にリターンされる

datagap

バーコードデータの間隔(string)

datamatrixencoding

DataMatrixバーコードのEncoding(string)

リターンする値:ANSI、UTF-8

datamatrixmargin

DataMatrixバーコードの余白(string)

dataposition

バーコードデータの位置(string)

リターンする値:None、Top、Bottom

effect

文字飾り(string)

リターンする値:Basic、Outline、3D、Engrave、Segments、Hollow、Shadow

fontname

フォント名(string)

fontsize

フォントサイズ(int)

fontstretch

フォントストレッチ(string)

fontstyle

フォントスタイル(string)

リターンする値:PLAIN、BOLD、ITALIC、BOLD_ITALIC

gradientcolor

グラデーション色(string)

RGB値で、"Red, Green, Blue"形式で返される

gradienttype

グラデーションの陰影スタイル(string)

リターンする値:Bottom_Center_Top、Bottom_Top、BottomRight_Center_LeftTop、Left_Center_Right、Left_Right、LeftBottom_Center_RightTop、LeftBottom_RightTop、LeftTop_BottomRight、LeftTop_Center_BottomRight、Right_Center_Left、Right_Left、RightTop_Center_LeftBottom、RightTop_LeftBottom、Top_Bottom、Top_Center_Bottom

halign

テキストの水平整列(string)

リターンする値:Left、Center、Right、Distributed、Justify

horizontalalignment

バーコードの水平整列(string)

リターンする値:Left、Center、Right

imagestyle

イメージスタイル(string)

リターンする値:TopLeft、MiddleCenter、Fit、Tile、FitByWidth、FitByWidth_Center、FitByHeight、FitByHeight_Center、Isotropic、Isotropic_Center、TopCenter、TopRight、MiddleLeft、MiddleRight、BottomLeft、BottomCenter、BottomRight

leftframethickness

左側枠線の太さ(string)

linecolor

枠線の色(string)

RGB値で、"Red, Green, Blue"形式で返される

linespace

行の間隔(string)

linetype

線のタイプ(string)

リターンする値:Horizontal、Vertical、Slash、BackSlash

margin

バーコードの余白(string)

pageindex

ページのインデックス(int)。 One-Based Index

pdf417colnum

PDF417コードの列数(string)

pdf417ecc

PDF417コードの誤り訂正符号数(string)

pdf417rownum

PDF417コードの行数(string)

pdf417xscale

PDF417コードのバーコードのXサイズ(string)

pdf417yscale

PDF417コードのバーコードのYサイズ(string)

penthickness

線の太さ(string)

printscale

バーコードの印刷サイズ(string)

qrecc

QRコードのエラー訂正レベル(string)

リターンする値:H、L、M、Q

qrencoding

QRコードのエンコード(string)

リターンする値:ANSI、UTF-8

qrmargin

QRバーコードの余白(string)

ratio

バーコードのサイズ(string)

reportindex

レポートのインデックス(int)。 Zero-Based Index

reportname

レポート名(string)

rightframethickness

右側枠線の太さ(string)

scale

バーコードの表示倍率(string)

showdata

チャートデータの表示(string)

リターンする値:true、false

textcolor

フォント色(string)

RGB値で、"Red, Green, Blue"形式で返される

textgap

バーコードのタイトルの間隔(string)

textindent

インデント(string)

textposition

バーコードのタイトルの位置(string)

リターンする値:None、Top、Bottom

textstretch

テキスト方向(string)

リターンする値:Horizontal、CounterClockWise、Vertical2、Vertical、ClockWise、Horizontal2

tooltiptext

ツールヒントテキスト(string)

topframethickness

上側枠線の太さ(string)

transparent

透過(string)

リターンする値:true、false

type

バーコードタイプ(string)

バーコードタイプを設定するComboBoxで選択されたテキストで返される

usegradient

グラデーションの使用(string)

リターンする値:true、false

valign

テキストの垂直整列(string)

リターンする値:Top、Middle、Bottom、Distributed、Justify

wordwrap

改行(string)

リターンする値:true、false

wordwraptype

改行タイプ(string)

リターンする値:IgnoreSpace、NonAsciiWord、IgnoreSpace,NonAsciiWord、Default

Reference

ChangeCompは属性値を変更する為、返されるattrは変更前の値を表示するoldvalueと変更された後の値を表示するnewvalueで構成されます。(ただし、"compindex"、"compname"、"pageindex"、"reportindex"、"reportname"は例外)

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

   var MyObj = eval('(' + attr + ')');

   if(type == "ChangeComp") {

       alert("Old Value : " + MyObj.oldvalue.backcolor + "New Value : " + MyObj.newvalue.backcolor);

       ...

   }

}

...