cancel
Showing results for 
Search instead for 
Did you mean: 

Win API function GradientFill not working in PB15

Former Member
0 Kudos

I have found that the Win API function GradientFill is not working properly in the PB 15 beta. I think this may be the cause of reported issues with the Advanced GUI Library.

I have a sample app in both 10.5 and 15 flavors. If you run them side by side, you can see that color2 (right side on horizontal) is not the correct color. It seems to be showing as Fuchsia when it should be something else. If you choose Lime for color2, it shows Blue instead.

You can't attach zip or pbl files so I'll need info on where to upload it.

Accepted Solutions (1)

Accepted Solutions (1)

former_member202249
Active Participant
0 Kudos

Hi Roland,

You can upload the testcase with the link below.

SAP Box Attachment

Thanks,


Pat

Former Member
0 Kudos

Done

former_member202249
Active Participant
0 Kudos

Hi Roland,


Thanks, I've downloaded the example and tested it in PB 10.5 - PB 12.5.2 where it works as described and then PB 15 beta where it does not as you noted.  When stepping through the debugger, the long value it's passing in to GradientFill are the same.   I even tried changing to longptr as the notes say it does no harm in 32 bit and it still doesn't work as it does in the previous versions.   I've opened CR 754524 and sending it to engineering.

Thanks,


Pat

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Hi Patricia,

Seems that engineering are already investigating this issue with CR754140

Kind Regards.

Abdallah.

Answers (2)

Answers (2)

Former Member
0 Kudos

Seems like an odd issue. It's just an API call so something must be going on before that call is made. Could PB be messing up the ULong values maybe?

Former Member
0 Kudos

This is with my non-PBNI canvas object. A version using canvas.pbx has the same exact problem.

Former Member
0 Kudos

I'm just curious. What happens if you compile to machine code and run the exe? Do you see the same results?

Former Member
0 Kudos

I tried machine code and p-code exe and both have the same issue.

Former Member
0 Kudos