Removing the outline or border around the Edit Text box in the GUI
Show older comments
I'm preparing a GUI, and for purposes of aesthetics, I want to remove the gray border around the edit text box, or change its color to match the background. I'm not sure how to do this - is it possible?
Accepted Answer
More Answers (1)
Max
on 20 Jan 2015
1 vote
I was looking for answer for this too... as I am dealing with the same frustrations. I deploying a professional application, so these unsupported java hacks are not ideal for me, whether or not they work.
It's not pretty, but a workaround is to create the 'edit' uicontrol inside of a uipanel. You can edit the border properties to your heart's content in the uipanel. This has been pretty successful for me.
3 Comments
John L
on 10 Nov 2016
Max, this is exactly the point - resorting to unsupported java hacks is unprofessional, and Matlab seems more interested in extending its reach into new frontiers than in improving the basic products. But anyway, one obvious solution to the above question is to change the Style from "Edit" to "Text" (using Guide uicontrols).
Arjun de Alwis
on 21 Dec 2018
Hi John L,
Could you help me out as to how I could change this uicontrol from edit to text??
Thanks in advance
Walter Roberson
on 21 Dec 2018
If you have the tag of the editbox, such as handles.editbox7 then
set(handles.editbox7, 'style', 'text')
If you do not have a handle then use the property editor in GUIDE to find the uicontrol and edit its properties, and find the Style property in the list and change it to 'text'
Categories
Find more on App Building 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!