Bug 5632

Changing ToolBarItemName doesn't work anymore for .PNG icons 20 November, 2020

Roel Pollet
20 November, 2020
Product: PowerBuilder Category: Controls & UI
Version: 2019 R2 Build: 2353
Classification: Appeon bug Publishing: Public
Priority: P3
Status: Scheduling Reason:
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: