編集フィールド - ReadOnlyプロパティ
コンポーネントが入力に使用できるかどうかを制御します
データタイプ - ブール値
詳細
ReadOnly プロパティは、コントロールが入力に使用可能かどうかどうかを決定します。
ReadOnly は Enabled プロパティとは異なり、コントロールがユーザーのアクションに応答することができます。
Readonly はビジュアル コントロールの動作を変更します。関連のデータ変数には何の影響も与えません。
例
次の例は、有効化 (enabled)、無効化 (disabled)、読み取り専用 (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