Creating a Non Editable String in the Matlab GUI

How to make a string uneditable, something similar to 'ColumnEditable' .

I was looking for a solution, and only one appeared ... it is related to Java. Any other solutions?

Here is what I'm trying to do, and I'm already planning to change it! I have checkboxes that will determine which input data and therefore those that are not checked will be disabled in the table. enter image description here

I did not expect this, I made a table, and then went to the documentation, expecting to find something like 'RowEditable' ! If there is no easy solution, I will probably use 'static text' and 'edit text' , which will either disappear or be disabled depending on these checkboxes.

+4
source share
1 answer

You should be able to set the Enable property of the text box to Off. or "Inactive." Personally, I would prefer to disable it.

It will turn off a little "gray" from the cell and make it so that the user can not interact with him.

Inactive retains the active color of the cell, but still does not allow the user to interact with it.

This can easily be controlled from callbacks from the click options that you already have.

0
source

Source: https://habr.com/ru/post/1402581/


All Articles