API version 1

- ‐

setCandidates

自動補完候補を設定します。

呼出形式一覧

呼出形式

説明

void setCandidates(table doc)

自動補完候補を設定します。

戻り値一覧

戻り値

説明

void

なし

引数一覧

引数

説明

doc

補完候補を指定します。CSVデータ各行の1列目が補完候補に設定されます。2列目以降は無視されます。 nullを指定すると、補完候補をクリアします。

例外

なし

関連項目

CsvDocumentクラス



使用例 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);
   }
}