1. Dhruv Jain
  2. PowerBuilder
  3. Tuesday, 16 July 2024 08:18 AM UTC
Hi,
I am facing vertical text getting shifted from their place issue due to PBESCAPEMENTMODE in the psr files.
Can anyone help on
1) How I can check what values are set for PBESCAPEMENTMODE for any PSRs files. 
2) How to set value of PBESCAPEMENTMODE while creating any PSR.

As PSRs has been created by other group of peoples.

Thanks
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 July 2024 01:04 AM UTC
  2. PowerBuilder
  3. # 1

Hi Dhruv,

PBESCAPEMENTMODE affects the center of the circle of object text rotation, the following are my test results for your reference. Suppose the object has position (x, y), width w, and height h.

When PBESCAPEMENTMODE=1, (x + 1/2*w, y) is the center of the circle, that is, the top center of the object is the center of the circle of the rotation.

When PBESCAPEMENTMODE=0(it is the default value), the center of the circle depends on the alignment, as follows:
Left (x, y + h), the bottom left corner.
Right (x + w, y), the top right corner.
Center (x + 1/2*w, y + 1/2*h), the center of the object.
Justify (x, y + h), the bottom left corner.

We will document this in the later version.


For your issue:

1) There is no feasible way to judge whether one report is created with PBESCAPEMENTMOD 1 or 0.
Please note the background color will rotate but object border not, so please set the object's border and background color, and then observe the rotation result; if you get correct result when the top center of the object is the center of the circle of the rotation, then it is created with PBESCAPEMENTMOD 1, otherwise it is created with PBESCAPEMENTMOD 0.

2) Close PB IDE, add setting like below in %localappdata%\appeon\powerbuilder 22.0\pb.ini.
[PB]
PBESCAPEMENTMODE=1

Regards,
kai

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 16 July 2024 20:21 PM UTC
  2. PowerBuilder
  3. # 2

I've googled this and the only link that mentions it is this one: http://www.sybrepair.com/sap-pb-cr-number-10.htm

Even though I cannot access it due to security settings, on the results page it mentions "a customer who has a PB 12 WPF application" (and something about color).

I don't think it's still supported in later versions. 

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 16 July 2024 15:45 PM UTC
  2. PowerBuilder
  3. # 3

You have already asked the same or similar question twice in the last two weeks, and in both instances a response was given the same day. Why are you asking a third time?

Comment
  1. Dhruv Jain
  2. Tuesday, 16 July 2024 17:05 PM UTC
Right, John. I have asked similar questions related to PBESCAPEMENTMODE over the past two weeks but have not yet received a satisfactory answer.



The first time, I was told that there is no flag named PBESCAPEMENTMODE, but I discovered that this flag is indeed used.



The second time, I was advised to test the issue in the latest PB build and to raise a support bug if the issue persisted. After raising the support bug, it was found that the issue I was facing was due to different PBESCAPEMENTMODE settings on different machines. As I am new to this, I asked the two questions mentioned earlier. They suggested I check the community forums for answers, as it was outside their scope.



That’s why I asked the question a third time.



Anyway, thanks for your help.
  1. Helpful
  1. John Fauss
  2. Tuesday, 16 July 2024 18:02 PM UTC
Since this is an advice forum, not a support forum, here's my suggestion: Open a (free) bug ticket, explain the issue and attach examples, if possible. This will make it possible for Appeon to investigate and hopefully, get you an answer.

Here's the URL: https://www.appeon.com/standardsupport/newbug
  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.