|
From: Jesse Hopkins on 5 May 2008 10:30 I too had the same file corruption problem. The problem is passing the empty matricies to the awtinvoke function. It seemed to me that the following syntax worked, and allowed a selectable icon. name = 'My New Shortcut' evalstr = 'disp(''My New Shortcut'')' iconfile = 'c:\path\to\icon.gif' isEditable = 'true' com.mathworks.mlwidgets.shortcuts.ShortcutUtils,'addShortcutToBottom',name,evalstr,iconfile,'Toolbar Shortcuts',isEditable); "Josh " <imahorse3(a)hotmail.com> wrote in message <fq984f$6j5$1(a)fred.mathworks.com>... > "Yair Altman" <altmanyDEL(a)gmailDEL.comDEL> wrote in message > <fq4ip2$9ta$1(a)fred.mathworks.com>... > > Simply edit your shortcuts.xml file and set an empty > > <label>. Remember to set the <editable> value to either > true > > or false (the other problem that you had earlier) > > > > Yair Altman > > http://ymasoftware.com > > > Thank you for the response. However, I need this to work on > any computer. Simply editing the xml code will not do the > trick. Basically, I need to edit the startup.m file where I > create the shortcuts to allow for an image on the shortcut. > > Thoughts? > > Thanks.
|
Pages: 1 Prev: GINPUT and PAUSE bug Next: medical image to array in mfile |