Bug 5632

Changing ToolBarItemName doesn't work anymore for .PNG icons 03 May, 2021

Roel Pollet
20 November, 2020
Product: PowerBuilder Category: Controls & UI
Version: 2019 R2 Build: 2353
Classification: Appeon bug Publishing: Public
Priority: P3
Status: Closed Reason: FIXED
Mark Lee @Appeon 03 May, 2021
#5
Hi Roel,

Thank you very much for your response!
We then proceed to close this ticket, please remember that you can always open another ticket in case you need it.
Have a nice day!

Regards,
Mark lee
Roel Pollet 03 May, 2021
#4
Hello,

The latest build fixes the problem. Ticket can be closed.

Thanks,
Roel
Mark Lee @Appeon 26 April, 2021
#3
Hi Roel,

Good news that PowerBuilder 2019 R3 MR (build 2703) is available for download. The issue you reported has been fixed in this release. Please download and install it to verify the issue you reported and let us know if any problems. You can get the installer from our Downloads portal at https://account.appeon.com/download/2019 (login required).
 
We welcome all feedback from you!

Regards,
Mark Lee
Mark Lee @Appeon 20 November, 2020
#2
Hi Roel,

Thanks for your reporting this problem and providing the test case.
I can reproduce it on our end and will do further research to figure it out.
We will keep you updated!

BTW, we've found that PB 12.6 and PB 2017 R3 Build 1915 doesn't have the same behavior.
And we don't have a feasible workaround for this currently except using GIF or BMP files 

Regards,
Mark Lee
Roel Pollet 20 November, 2020
#1
bitmap_icons.zip (179KB)

*Phenomenon:

In the menu bar we change the toolbar icons when the user clicks on it.

m_color.clicked :

IF this.toolBarItemText = "Yellow" THEN
    this.toolBarItemText = "Red"    
    this.toolBarItemName = "red.png"    
ELSE
    this.toolBarItemText = "Yellow"    
    this.toolBarItemName = "yellow.png"
END IF

With PB 2017 R3 this was no problem.
With PB 2019 R2 Build 2353 this does not work anymore.
I found that this still works with BMP icons, but no longer with PNG icons.

*Reproduce Steps:

Click multiple times in the menu bar on 'Red PNG' button. Only the text will change, not the icon.
'Red BMP' button still works.
OS:
All
Platform:
Database Type:
Database Version: