figure;
opts = {'on', 'off', 'inactive'};
for i=1:numel(opts)
  str = repmat ([opts{i} ' '], 1, 100);
  h(i) = uicontrol (...
    "Style","edit", ...
    "Units",'normalized', ...
    "Position",[0.25 i/4 0.5 0.2], ...
    "Max",2, ...
    "String", str, ...
    "Enable",opts{i});
endfor

