|
Thank you for your answers but my problem is not as easy
at it seems to be. As I mentioned I have further
uicontrols in my GUI.
I expand the example of US:
uh=uicontrol(...
'units','normalized',...
'position',[.1,.1,.4,.4],...
'style','listbox',...
'string',{'a';'bb';'ccc'},...
'selectionhighlight','off');
... that's ok, that looks what I want...
Now I add a pushbutton to the figure:
uh=uicontrol(gcf,...
'units','normalized',...
'position',[.6,.6,.1,.1],...
'style','pushbutton',...
'string','Click me');
It still looks ok.
But if I change the order of these 2 commands - first
create the pushbutton and then the listbox then I have the
situation I described.
It seems that the order of these commands is important for
that what I want. Unfortunately I created my GUI with
GUIDE so I have no influence to the order of processing
and additionally I have 2 listboxes in real that means
there is no order of processing which gives the correct
result.
|