チェックボックス - ReadOnlyプロパティ 

ReadOnlyはコンポーネントが入力に使用できるかどうかを制御します

チェックボックス (PRIM_CKBX) のメンバ

データタイプ - ブール値

詳細

ReadOnly プロパティは、コントロールを入力に使用できるかどうかを決定します。 

ReadOnly は、コントロールがユーザーアクションに応答できるという点で、Enabledプロパティと異なります。 

Readonly は、ビジュアルコントロールの動作を変更します。関連するデータ変数には影響しません。

この例は、有効、無効、および読み取り専用のフィールドの違いを示しています。 

     Begin_Com Role(*EXTENDS #PRIM_WEB) Height(440) Width(688)
Define_Com Class(#xDemoUnicode128.Visual) Name(#Readonly) Displayposition(3) Left(80) Parent(#COM_OWNER) Tabposition(3) Top(120) Width(521) Height(25) Caption('Readonly(True)') Labeltype(Caption) Readonly(True)
Define_Com Class(#xDemoUnicode128.Visual) Name(#Disabled) Displayposition(2) Left(80) Parent(#COM_OWNER) Tabposition(2) Top(152) Width(521) Height(25) Caption('Enabled(False)') Labeltype(Caption) Enabled(False)
Define_Com Class(#xDemoUnicode128.Visual) Name(#Normal) Displayposition(1) Left(80) Parent(#COM_OWNER) Tabposition(1) Top(88) Width(521) Height(25) Caption('Normal') Labeltype(Caption)

Evtroutine Handling(#COM_OWNER.CreateInstance)
#Normal := "Normal field"
#Readonly := "Readonly - Value cannot be changed"
#Disabled := "Disabled - Control cannot be accessed"
Endroutine

End_Com

参照

すべてのコンポーネント クラス
テクニカルリファレンス