1. Olan Knight
  2. PowerBuilder
  3. Tuesday, 5 July 2022 19:12 PM UTC

Update:  06-JUL-2022

After rebooting the VM 3 times, and rebooting PowerBuilder with it each time, cafter the last rebuild & deploy (yes, running both steps separately)  the icon is now showing up again. It's magic.

---------------------------------------------------------------------------------------------------------------------

PB2019R3, b2703
Windows 10, 64 bit platform


Suddenly, when I do a full deploy the application ICON is NOT being used. Instead, I get the generic icon.
The code works, but the icon is not correct.


Q1:  What am I doing wrong?
Q2:  Is there a way to create the EXE without doing a full blown DEPLOY, which can take 30 minutes in my case.


Twice I have gone back into the application object, clicked on Additional Properites, then the Icon tabpage, navigated to the icon, selected the icon, Hit APPLY, then OK, then OK. Then I got BACK into the same location and stripped the PATH to the icon, leaving the icon name. Hit APPLY, then OK, OK to exit. Then I redeployed the ENTIRE application. No change.

Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 5 July 2022 20:23 PM UTC
  2. PowerBuilder
  3. # 1

Appeon has added several properties to the application object. The application icon is one of those. Traditionally the icon property was stored in a binary only object appname.pra in the same library as the application object. The painter will read the pra if the icon isn't found in the source code. Like Chris said, you need to do a check-out of the application object so that changing the icon will update the source code. Exit the painter and do an Edit Source to verify the appicon property. Then do a check-in.

global type scintilla from application
string appname = "scintilla"
string themepath = "C:\Program Files (x86)\Appeon\PowerBuilder 22.0\IDE\theme"
string themename = "Do Not Use Themes"
boolean nativepdfvalid = false
boolean nativepdfincludecustomfont = false
string nativepdfappname = ""
long richtextedittype = 2
long richtexteditx64type = 3
long richtexteditversion = 3
string richtexteditkey = ""
string appicon = "fileeditor.ico"
string appruntimeversion = "22.0.0.1716"
boolean manualsession = false
boolean unsupportedapierror = false
end type
Comment
  1. Olan Knight
  2. Tuesday, 5 July 2022 21:10 PM UTC
Thank you, Roland!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 July 2022 19:49 PM UTC
  2. PowerBuilder
  3. # 2

Hi Olan;

  FWIW: If your App Object is under older Source Code Control software - make sure that you check it out first, then do the mods for the .ICO file. Otherwise, the modifications will not take effect. Also, the .ICO file must be in the same folder as the App's "Workspace" object.   HTH

Regards ... Chris

Comment
  1. Roland Smith
  2. Wednesday, 6 July 2022 12:27 PM UTC
You can also put all the icons/bitmaps in a folder that is in the system path or the app path of the program building the exe.
  1. Helpful
  1. René Ullrich
  2. Wednesday, 6 July 2022 12:45 PM UTC
I have no problem with ICO in a subfolder in my dev. In application I use a relative path. And ICO is specified in PBR file.
  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 6 July 2022 12:59 PM UTC
Hi .

I also do the same René without issues.

Andreas.
  1. Helpful
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.