If you create:
h = uicontrol('style','edit');
Then if you type
and then select 'HorizontalAlignment', you can again < tab > to get a list of alignment options.
set(h, 'HorizontalAlignment', ' <tab> ...
ATTEMPT TO REPRODUCE IT
I am wondering if there is a way to take advantage of this behaviour for user defined classes of the type hgsetget
classdef foo < hgsetget
Then in a separate folder, i.e. .\+foo\, I created and enumerator
but to no avail.
I tried several things, like defining a set.HorizontalAlignment(obj,val) mnethod which then calls the foo.HorizontalAlignment class, still no way to get the autocomplete.
Anybody has hints?