フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Easy question for editbox?

3 ビュー (過去 30 日間)
Volkan Kandemir
Volkan Kandemir 2013 年 12 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
I am using edit box as an input window. When user click enter button callback of the edit box runs and takes the input. And in order to change the text of edit box I need to select the editbox again. Is there code that I can add and of callback, it selects edit box instead of me.

回答 (1 件)

Image Analyst
Image Analyst 2013 年 12 月 14 日
You don't need to "select" it. You just use the set() function to send a string to it.
set(handles.edit1, 'String', yourString);
  4 件のコメント
Volkan Kandemir
Volkan Kandemir 2013 年 12 月 15 日
but I am asking what is my stuff to select this edit box via code?
Image Analyst
Image Analyst 2013 年 12 月 15 日
What do you mean by "select"? Do you mean to highlight the text that is in there so that if the user types a character the whole contents are replaced by what he typed? Or do you mean that it just has focus? If it's the former you'll have to look to some java code. Try http://undocumentedmatlab.com/blog/customizing-editboxes/ - that will show you how to do it.

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by