Put a % sign inside of an 'edit text' box behind a number in the box
Show older comments
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
Accepted Answer
More Answers (1)
Guru
on 9 Jul 2013
0 votes
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.
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!