Borrar filtros
Borrar filtros

Removing the outline or border around the Edit Text box in the GUI

58 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Evan
Evan el 13 de Jun. de 2013
Editada: Evan el 13 de Jun. de 2013
This cannot be done through matlab's documented uicontrol properties, but you can achieve it by working with the underlying java. See here: http://undocumentedmatlab.com/blog/customizing-uicontrol-border/
  1 comentario
Jan
Jan el 14 de Jun. de 2013
@Jake: And guess if Google finds this link also, when you ask for "Removing the outline or border around the Edit Text box Matlab".

Iniciar sesión para comentar.

Más respuestas (1)

Max
Max el 20 de En. de 2015
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 comentarios
Arjun de Alwis
Arjun de Alwis el 21 de Dic. de 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
Walter Roberson el 21 de Dic. de 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'

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by