Thread Rating:
  • 330 Vote(s) - 2.79 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TextFieldのtext全体選択について質問!!
07-27-2012, 02:16 PM,
#1
TextFieldのtext全体選択について質問!!
TextFieldに FocusIn イベントが発生する場合、入力されているテキストをすべて選択しようとしています。

{TextField width=100px,
{on FocusIn at this:TextField do
{this.become-active-from-traversal}
}
}


しかし、できません。(涙) 瞬間的に全体選択が解除されます。
他にいい方法はありませんでしょうか。
07-27-2012, 06:19 PM,
#2
RE: TextFieldのtext全体選択について質問!!
TextFieldはデフォルトでフォーカスが入った時に文字列が選択されると思います。
become-active-from-traversal を呼び出している掲載されたコードも試しに動かしてみましたがちゃんと選択されました。

何かほかに原因があるのでは??
07-31-2012, 09:26 AM,
#3
Wink  RE: TextFieldのtext全体選択について質問!!
良い情報ありがとうございます。
08-17-2012, 06:16 PM,
#4
RE: TextFieldのtext全体選択について質問!!
It would be helpful to use StringDataModelWritableRange.

This class provide powerful functions for selecting texts entirely or partly.

Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('579')