API version 1

- ‐

RW

boolean

toolTipOnFocus

フォーカス取得時にツールチップ表示を行うかどうかを指定します。

trueを指定すると、フォーカス取得時に DisplayObject.toolTip プロパティへ設定された文字列でツールチップを表示します。

初期値はfalseです。

関連項目

DisplayObject.toolTip プロパティ



使用例 CRSダウンロード

Form FocusObj {
   x = 0;
   y = 0;
   width = 681;
   height = 537;

   var bl = new Border( Border.SOLID, 2, "red", 5);

   GroupBox GroupBox1 {
           x = 20;
           y = 43;
           width = 280;
           height = 164;
           bgColor = Color.WHITE;
           title = "<Enterで次、S+Enterで戻>";
           titleAlign = GROUPBOX_CENTER ;
           boxStyle = GROUPBOX_ROUND ;

           Button Button11 {
                   x = 10;
                   y = 10;
                   width = 120;
                   height = 25;
                   title = "Button";
                   highlightOnFocus = bl;
                   setFocus() ;
                   /* Enterキーで送り、S+Enterで戻り */
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;

                   function onTouch(e) {
                           moveFocus(1) ;   #クリックで次へ
                   }
           }
           TextBox textBox11 {
                   x = 10;
                   y = 46;
                   width = 120;
                   height = 25;
                   value = "TextBox";
                   highlightOnFocus = bl;
                   skipTabFocus = true ;  # これで対象外指定
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           EditBox EditBox11 {
                   x = 11;
                   y = 84;
                   width = 120;
                   height = 40;
                   value = "EditBox";
                   toolTip = "sample" ;
                   toolTipOnFocus = "Focus" ;
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           ListBox ListBox11 {
                   x = 140;
                   y = 10;
                   width = 120;
                   height = 35;
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   ListItem ListItem11[2] {
                           ListItem11[0].title = "ListBox1";
                           ListItem11[1].title = "ListBox2";
                   }
           }
           OptionButton OptionButton11 {
                   x = 140;
                   y = 55;
                   width = 120;
                   height = 35;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   OptionItem OptionItem11[2] {
                           width = 110;
                           height = 15;
                           highlightOnFocus = bl;
                           OptionItem11[0].title = "OptionButton1";
                           OptionItem11[1].title = "OptionButton2";
                   }
           }
           CheckBox CheckBox11 {
                   x = 140;
                   y = 102;
                   width = 120;
                   height = 35;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   CheckItem CheckItem11[2] {
                           width = 110;
                           height = 15;
                           highlightOnFocus = bl;
                           CheckItem11[0].title = "CheckBox1";
                           CheckItem11[1].title = "CheckBox2";
                   }
           }
   }
}