Hello,
does anyone know, why it is unpossible to set an uimenu item with accelerator key, which is displayed in the uimenu label when adding it to an uicontextmenu?
Like:
myhandles.fig(1) = figure;
myhandles.pnl(1) = uipanel('parent',myhandles.fig(1),'units','normalized','position',[0 0 1 1]);
myhandles.cm(1) = uicontextmenu('parent',myhandles.fig(1));
myhandles.cm(2) = uimenu('parent',myhandles.cm(1),'label','Item 1','Accelerator','O');
myhandles.cm(3) = uimenu('parent',myhandles.cm(1),'label','Item 2','Accelerator','N');
set(myhandles.pnl(1),'uicontextmenu',myhandles.cm(1));
Is there may any possible workaround to set the Information of the Accelerator Key within the label itself, like using ( this failed: sprintf('Item 1\t Strg I')) with using pure matlab code?
Another way I tried is using html labeling but unfortunately when focusing the item the background becomes blue and the foreground color of the item itself, of the string, still is displayed in black color and does not turn to white. ;(((((
Thanks
Jens
does anyone know, why it is unpossible to set an uimenu item with accelerator key, which is displayed in the uimenu label when adding it to an uicontextmenu?
Like:
myhandles.fig(1) = figure;
myhandles.pnl(1) = uipanel('parent',myhandles.fig(1),'units','normalized','position',[0 0 1 1]);
myhandles.cm(1) = uicontextmenu('parent',myhandles.fig(1));
myhandles.cm(2) = uimenu('parent',myhandles.cm(1),'label','Item 1','Accelerator','O');
myhandles.cm(3) = uimenu('parent',myhandles.cm(1),'label','Item 2','Accelerator','N');
set(myhandles.pnl(1),'uicontextmenu',myhandles.cm(1));
Is there may any possible workaround to set the Information of the Accelerator Key within the label itself, like using ( this failed: sprintf('Item 1\t Strg I')) with using pure matlab code?
Another way I tried is using html labeling but unfortunately when focusing the item the background becomes blue and the foreground color of the item itself, of the string, still is displayed in black color and does not turn to white. ;(((((
Thanks
Jens