1. Konstantin Goldobin
  2. PowerBuilder
  3. Tuesday, 27 February 2018 13:28 PM UTC

Hello,

I was wondering if anyone could tell me whether Appeon is going to add a parameter for PBC for an application icon file any time soon. Thank you!

Best regards,
Konstantin

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 28 February 2018 14:02 PM UTC
  2. PowerBuilder
  3. # 1

Even though set in the Application Painter, the application icon and font defaults are stored in a binary object in the PBL separate from the application object binary.

If you could look inside the PBL you would see:

appname.sra - The application object source code

appname.apl - The application object compiled code

appname.pra - The additional settings binary object

I am pretty sure I submitted a feature request to move the icon name to the application object source code. It would make rebuilding the target from source and building the exe much easier.

 

 

 

Comment
  1. Konstantin Goldobin
  2. Wednesday, 28 February 2018 16:28 PM UTC
Hello Roland,



I couldn't agree more!!! BTW, could you kindly let me know what tool you use to look inside PBLs?



Best regards,

Konstantin

  1. Helpful
  1. Roland Smith
  2. Wednesday, 28 February 2018 18:01 PM UTC
I have a DLL I wrote in C that reads the internal directory and pulls out source code. I use it in my PBSearch tool. Much faster than the built in LibraryDirectory & LibraryExport functions.

  1. Helpful
  1. Konstantin Goldobin
  2. Monday, 5 March 2018 11:48 AM UTC
Nice! Can your DLL update a PBL with the app icon path as well?

  1. Helpful
There are no comments made yet.
Konstantin Goldobin Accepted Answer Pending Moderation
  1. Tuesday, 27 February 2018 20:30 PM UTC
  2. PowerBuilder
  3. # 2

Thank you Chris and Bruce!

Unfortunately, we all know that the icon property is not a real application object property but something called an "additional property". Setting it leaves no trace in an application object source code. Apparently, this information is recorded somewhere in a local PBL file. We store our source code in SVN using PBSCC proxy, so this information never finds its way to SVN. We are creating PBLs from the source code files pulled from SVN (either in PB with PBSCC proxy or via PowerGen for PB10/12 or via OrcaScript for PB2017) and the information about the icon file is simply not present in these PBLs. Building an exe file from such dynamically created PBLs with an icon file is possible with OrcaScript but it is rather awkward because of the pdbflags parameter. PBC does not need it, but there is no way to specify an application icon...  Quite a dilemma! Am I getting this right that this is not going to change any time soon? Is there maybe a way of recording the information about the icon file into a PBL file the way PB IDE does?

Best regards,
Konstantin

Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Tuesday, 27 February 2018 15:54 PM UTC
  2. PowerBuilder
  3. # 3

The pbc just automates the options in the PowerBuilder project object.  There's no option there for the app icon.  Instead, that's on the application object.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 27 February 2018 14:30 PM UTC
  2. PowerBuilder
  3. # 4

Hi Konstantin;

   The PB App's icon for the EXE is controlled via the "Application" object and its icon property mapping.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.