FlexPendant SDK - Application Icon
Hello all,
I'm developing a FlexPendant application and want to change the application icon. Therefor, I've changed the assembly entry to:
[assembly: TpsView("MyApp", "icon32.png", "icon16.png", ...
If I deploy the binaries and the image files to the FlexPendant, everything is fine. But I want to include the application images in the binaries, so that I only have to deplay the two dlls.
I've tried to include the images as embedded resource and included the files in Resource.resx without success. Anyone knows a way to do this?
Regards
Matthias
John Wiberg2011-10-04 14:09:06
I'm developing a FlexPendant application and want to change the application icon. Therefor, I've changed the assembly entry to:
[assembly: TpsView("MyApp", "icon32.png", "icon16.png", ...
If I deploy the binaries and the image files to the FlexPendant, everything is fine. But I want to include the application images in the binaries, so that I only have to deplay the two dlls.
I've tried to include the images as embedded resource and included the files in Resource.resx without success. Anyone knows a way to do this?
Regards
Matthias
John Wiberg2011-10-04 14:09:06
0
Comments
-
Hello Matthias,I have already changed the icons of the FlexPendant application a view times.As I created a new project in the VisualStudio I already declared the new name of the icons, but as you have done should also work.What I know is that if you don't use the standard icons you have to load the pictures into the HOME-folder of the robot - then it should work.RegardsChaos0
-
Hello Chaos,
yes, loading the icon into the HOME folder works. But is there a way to include the icon into the binary?
Regards
Matthias
0 -
HiI don't think that there is a solution from "within" since the assembly line is before the FP screen is created. So the resources within is not yet accessible.A workaround-solution would be to include it as a resource, then when it is loaded the first time it checks if the pics exist in HOME otherwise it will copy them there.That way the first time the FP app is started there will be no icon, but from the second the icon will be there.But as I said, that is a workaround-solution.John
Developer Center0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings