<< Click to Display Table of Contents >>

OZUserActionCommand > SelectComp

OZUserActionCommandのtypeのSelectCompはマウスのクリックやドラッグ&ドロップ操作で、コンポーネントを直接選択した場合のみ発生し、戻されるattrは次のとおりです。

attr

説明

changeable

属性変換可能か否か(string)

compindex

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

compname

コンポーネント名(string)

comptype

コンポーネントタイプ(string)

メモは"label"として返されます

editable

編集可能か否か(string)

height

高さ(float)

movable

移動可能か否か(string)

pageindex

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

reportindex

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

reportname

レポート名(string)

selecttype

選択タイプ(string)

width

幅(float)

xpos

X座標(float)

ypos

Y座標(float)

Reference

検索や目次の選択などで、コンポーネントが選択された場合には、SelectCompが発生しません。

ドラッグ&ドロップ操作で複数のコンポーネントがまとめて選択された場合にはコンポーネントがページに追加された順序に基づいてOZUserActionCommandが一度に発生します。

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

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

   if(type == "SelectComp") {

       alert(MyObj.changeable);

       ...

   }

}

...