Skip to Content

Powerbuilder 12.5 Classic Application Icon

I am saving the application icon in the application object. I am using the additional properties window that opens from the button on the general tab in properties. When I enter the icon file name in the field and close the application, it prompts me to save the application. When I build the executable, the icon displays correctly. My problem is that when I check the application into PVCS and then check it out on another PC, the icon file name is blank. I don't know where the application icon information is being saved. Does anyone know where the application icon information is actually saved?

Thanks in advance,

Jeff

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on May 23, 2013 at 02:42 AM

    The application icon is actually saved in the application object; the problem is that the application icon definition is not exported when you export the application object, so it doesn't get source controlled. This has been a problem for years; I remember discussing hopes for a solution to this at conferences 10 years ago.

    Two bright points (well, less gloomy than what's above):

    • IIRC, I don't think I've ever come across a case where, after manually setting the application icon, that it was ever lost, even when getting an updated application object. (If you change your application icon regularly, and want to see that in development, maybe this isn't that helpful.)
    • One work around that I've used is to set it in the PowerGen .GEN file and source control that file, so all changes will definitely get into your executable, if not your development environments.

    Good luck,

    Terry.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2013 at 01:23 PM

    The application icon name is stored in the internal directory structure of the library containing the application object. It isn't part of the application source or compiled code.

    The internal directory structure includes the object name, size, comment and address of the object in the file. The icon name is in the comment field of the appname.pra entry. The application object source is appname.sra and the compiled code is appname.apl.

    The only way another developer can get the change without doing it manually is to copy the library file.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2013 at 12:05 PM

    Hi Jeff,

    Is the other pc able to locate the path to the icon? If the icon path is local to the working pc I would make sure it is local to the other pc. If it isn't adding the icon to source control would take care of that.

    hth,

    Mark

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 23, 2013 at 02:17 PM

    We are using PowerGen, so we can either set it in the .GEN file or I can have the person who does our builds start with a copy of my pbl.

    Thanks to all!

    Jeff

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.