Fixed symbol inside edit text

2 ビュー (過去 30 日間)
Daniele Morello
Daniele Morello 2015 年 10 月 16 日
回答済み: Kirby Fears 2015 年 10 月 16 日
hi everyone. i would to know if it is possible to insert a fixed symbol inside an edit text. this symbol must remain (it must be non-erasable) even when i digit something.
example:
i would to insert new values on the left and on the right of the '-'

回答 (1 件)

Kirby Fears
Kirby Fears 2015 年 10 月 16 日
You could make two edit text boxes with a static text box in the middle. Callback handling could automatically switch focus from the left box to the right box after a certain number of characters is entered. I tested this out in GUIDE and it looked reasonably good.
I'm not aware of a built-in way to fix a character within an edit text box.
Hope this helps.

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by