RobotStudio event

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

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.

     

    Regards

                 Chaos
  • 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


  • Hi
     

    I 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.