API version 1
- ‐
complete¶
自動補完を実行します。
autoCompleteプロパティがAUTOCOMP_NONEの場合、実行は無視されます。
対象オブジェクトにフォーカスがない場合は内部的にフォーカスがセットされた後、補完が実行されます。
呼出形式一覧
呼出形式 |
説明 |
---|---|
void complete() |
自動補完を開始します。 |
戻り値一覧
戻り値 |
説明 |
---|---|
void |
なし |
例外
なし
関連項目
autoCompleteプロパティ
使用例
CRSダウンロード
Form Textbox_met{
x = 0;
y = 0;
width = 700;
height = 530;
CSVDocument csv1;
csv1 << csv {
あきた
いのかしら
うえの
駅中
おぷすと
かわごえ
きさらず
} ;
TextBox TextBox1 {
x = 214;
y = 55;
width = 150;
height = 50;
}
Label label1 {
x = 20;
y = 14;
width = 129;
height = 17;
title = "autoComplete 値";
font = new Font("MS UI Gothic", 10, true);
}
Label autocomp_v {
x = 31;
y = 36;
width = 130;
height = 30;
border = DisplayObject.BORDER_SUNKEN;
horizontalAlign = ALIGN_RIGHT;
verticalAlign = ALIGN_MIDDLE;
value = 1;
^.TextBox1.autoComplete = 1 ;
}
Button setCand {
x = 33;
y = 74;
width = 130;
height = 30;
Title = "setCandidates(CSV)";
Function OnTouch( e ) {
^.TextBox1.setCandidates(^.csv1);
}
}
Button comp {
x = 31;
y = 115;
width = 130;
height = 30;
Title = "complete";
Function OnTouch( e ) {
^.TextBox1.complete();
}
}
Label label3 {
x = 223;
y = 37;
width = 114;
height = 16;
title = "入力";
font = new Font("MS UI Gothic", 10, true);
}
Button button_clear {
x = 231;
y = 112;
width = 130;
height = 30;
Title = "clear";
Function OnTouch( e ) {
^.TextBox1.clear();
}
}
TextBox TextBox_Furigana_Default {
x = 75;
y = 286;
width = 200;
height = 50;
}
Label Label5 {
x = 33;
y = 199;
width = 120;
height = 22;
Value = "【入力 TextBox】";
font = new Font("MS UI Gothic", 10, true);
}
TextBox TextBox_Input1 {
x = 73;
y = 216;
width = 200;
height = 50;
setIMECompObject(^.TextBox_Furigana_Default);
}
Button Button5 {
x = 288;
y = 220;
width = 50;
height = 40;
Title = "Clear";
Function OnTouch( e ) {
^.TextBox_Input1.Clear();
^.TextBox_Furigana_Default.Clear();
}
}
Label Label7 {
x = 29;
y = 268;
width = 197;
height = 22;
Value = "【ふりがな表示 TextBox】";
font = new Font("MS UI Gothic", 10, true);
}
}