Icons disappear from application after using matlab compiler

4 ビュー (過去 30 日間)
Armindo
Armindo 2016 年 9 月 29 日
コメント済み: derboo 2017 年 7 月 7 日
Hi
I made an application that I need to run in another computer without matlab, but after use compiler (from matlab R2015b) all the application Icons disappear.
All the icons use some code like this:
pic = fullfile('C:\Program Files\OpenFile.png');
gui.ButOpenFile = uicontrol('Style', 'PushButton', 'Position', [0, 0, 34, 32],...
'parent',panOpen{1}, 'fontsize',11,'Tag','ButOpenFile',...
'String',...
['<html><img src = "file:/', strrep(pic, '\', '/')],...
'TooltipString','Open database folder',...
'Callback', {@OnOpenFile});
I also have been using the following Tool Boxes from which i also get some errors
GUI Layout Toolbox Java Table Wrapper for User Interfaces Tree Controls for User Interfaces
Any help would be apreciated.

回答 (2 件)

Armindo
Armindo 2016 年 9 月 30 日
Hi
I was able to solve the Icons and Toolbox issues mentioned above, however a new problem appeared.
I have an object that I can use to store some application properties. I can change these properties inside the aplication however it seems that the new changes are not added to the object file stored permanently and therefore everytime I open the application I need to change again the properties.
Any Idea why this is happening?
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 9 月 30 日
How are you saving the object? You say that the changes to the object are done inside the application: are you expecting that if you save() inside an application that the saved file will be available later? If so then where are you saving it? And are you expecting that the saved changes will be available to all users of the application or only to the person who ran the application and made the changes through the application?
derboo
derboo 2017 年 7 月 7 日
How did you solve the problem with the Icons? I have the same problem.

サインインしてコメントする。


Armindo
Armindo 2016 年 10 月 1 日
Hi Walter
Thank you for the help. I already solved the problem. Basically I was unable to overide data in complied mat file in standalone aplication. But with this indication (below) I was able to solve the problem.

カテゴリ

Help Center および File ExchangeSystem Commands についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by