Put a % sign inside of an 'edit text' box behind a number in the box
古いコメントを表示
Hi,
So I have a few edit text boxes on my form that I made using GUIDE. My text boxes are linked to some scroll bars and range from 1 to 100. These edit boxes are being used as 'weights'. The 1 to 100 is suppose to represent a percentage and I think the GUI would make more sense to the users if there was an actual % sign behind each number in the text boxes. I was wondering how I would accomplish this.
Basically within each text box say the number is 75... I want it to read "75%"
Thanks
採用された回答
その他の回答 (1 件)
Guru
2013 年 7 月 9 日
0 投票
Create a static text box where you put in the % for the string value and position it immediately to the right of the edit text boxes. If you like, you can also change the BackgroundColor for the static textbox to be the same background color as the Edit Textbox which I think defaults to white.
カテゴリ
ヘルプ センター および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!