Set application icon when building .exe with pbc170

1
0
-1

The build generated by calling pbc170.exe creates .exe file without application icon.
Another mystery is: the icon file is set when open application Addition Parameters within PB IDE. But exported application .sra file does not contain it. 

How to set application icon when build .exe with pbc170?

Thanks,

Yuri

 

Question Tags: 

Answers

Gary Collins answered Set application icon when building .exe with pbc170

1
0
-1

See this thread:

https://community.appeon.com/groups/powerbuilder/setting-application-icon-when-compiling-source-pbtpbgsr-files-not-pbls-using

Yuri Denshchik's picture

The thread covers the same issue, but there is no solution.
I submitted bug. https://www.appeon.com/standardsupport/track/view?id=638
Hope that can be fixed with PB2017R2

 

Olan Knight's picture

That is correct: what you want cannot be done yet.

The only way to associate an icon with an application is by assigning the icon to the application on the ICON tabpage of the Additional Properties in the application object.

 

Olan

 

Yuri Denshchik's picture

Olan, 

Associate an icon with an application is not working when building application from command line. Application source file does not have this information. I guess it is stored in window registry surprise

Roland Smith answered Set application icon when building .exe with pbc170

1
0
-1

The application icon is not part of the application object source, it is located in a binary only object within the library containing the application object.

I added a feature request to change this.

Everyone knows that when you save an object, there are source and compiled versions of the object stored in the library. Internally the library format stores the source and compiled code separately. If your application object is called 'myapp', the internal name of the source is myapp.sra and the compiled code is called myapp.apl. Similarly a window called w_main has source with an internal name of w_main.srw and compiled code called w_main.win. The application painter stores the application icon and default fonts in a binary only object called <appname>.pra, myapp.pra in this example.

There are no ORCA functions to work with the pra object so external compilers cannot get the icon name.

Yuri Denshchik's picture

Thank you Roland for explanation. That means, pb170.exe cannot be used now because it does not set application icon sad