テキストフィールドWidget (TextField Widget)
MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

テキストフィールドwidgetは、1行のテキストエディタです。テキストフィールドwidgetを生成するには、クラスxmTextFieldWidgetClassを使わなければなりません。

xmTextFieldWidgetClassはxmPrimitiveWidgetClassのサブクラスなので、xmPrimitiveWidgetClassで書かれたすべてのリソースは、xmTextFieldWidgetClassでも有効です。

リソ−ス Prolog表現 Acc デフォルト 説明

blinkRate 整数  CSG 500 カーソルの点滅間隔 columns 整数  CSG 20 テキストのカラム数 cursorPosition 整数  CSG 0 挿入カーソルの位置 cursorPositionVisible アトム *1 CSG true カーソルが可視である editable アトム *1 CSG true ユーザがテキストを編集できる fontList *2    CSG fixed テキストのフォント・リスト marginHeight 整数  CSG 5 トップ/ボトムエッジとテキストの距離 marginWidth 整数  CSG 5 左/右エッジとテキストの距離 maxLength 整数  CSG MAXINT 入力された文字列の最大長さ pendingDelete アトム *1 CSG true ペンディング削除モードをオンにする resizeWidth アトム *1 CSG false 幅をリサイズしようとする selectThreshold 整数  CSG 5 選択に必要な移動量(ピクセル数) selectionArray リスト *3 CSG *4 マルチクリック用の選択 selectionArrayCount 整数 G 4 selectionArrayのアイテム数 verifyBell アトム *1 CSG true ベルのトグル

*1 boolean: true,false,on,off, ... *2 リストあるいはアトム、正しいフォント・リスト *3 正しい要素: select_position, select_word, select_line, select_all *4[ select_position, select_word, select_line, select_all ]

コ−ルバックの CallData型 説明 リスト名

activateCallback activate 活性化された gainPrimaryCallback gain_primary 獲得されたプライマル選択のオーナシップ losePrimaryCallback lose_primary なくしたプライマル選択のオーナシップ losingFocusCallback losing_focus *1 フォーカスがなくなる前 modifyVerifyCallback modifying_text_value *1 挿入/削除の前 motionVerifyCallback moving_insert_cursor *2 カーソルが移動した valueChangedCallback value_changed テキストが削除あるいは挿入された

*1 正しいコールバックのコンポーネント: doit, currInsert, newInsert, startPos, endPos, text *2 正しいコールバックのコンポーネント: doit, currInsert, newInsert

注意:

doitコンポーネントを設定することによって、修正の実行を取り消すことは できません。


xmTextFieldClearSelection/1
xmTextFieldCopy/1
xmTextFieldCut/1
xmTextFieldGetBaseline/2
xmTextFieldGetEditable/1
xmTextFieldGetInsertionPosition/2
xmTextFieldGetLastPosition/2
xmTextFieldGetMaxLength/2
xmTextFieldGetSelection/2
xmTextFieldGetSelectionPosition/3
xmTextFieldGetString/2
xmTextFieldInsert/3
xmTextFieldPaste/1
xmTextFieldPosToXY/4
xmTextFieldRemove/1
xmTextFieldReplace/4
xmTextFieldSetAddMode
xmTextFieldSetEditable/2
xmTextFieldSEtHighlight/4
xmTextFieldSetInsertionPosition/2
xmTextFieldSetMaxLength/2
xmTextFieldSetSelection/3
xmTextFieldSetString/2
xmTextFieldShowPosition/2
xmTextFieldXYToPos/4

Up read on...