1. Thomas George
  2. PowerBuilder
  3. Monday, 11 September 2023 17:47 PM UTC

Hi,

 

Our PB application is using a slightly modified Flat Design Grey theme, but we noticed it's difficult to resize windows due to how thin the borders are:  You have to be extremely precise for the mouse pointer to change to indicate that you can resize it. My guess would be to increase the thickness of borders for windows in the theme.json file, but I'm not sure how to do that. I tried a couple shots at it based off something I found on the web, but when I put it into my theme.json, it crashes the PowerBuilder 2019 R3 IDE. Here was the snippet I was trying to add to see what it did:

"border": [{
"show": true,
"color": { "solid": { "color": "#FF0003" } },
"radius": 10
}]

I was putting this at the beginning of the "window" section, just before the "drawing" part:

 

"window":
{
"border": [{
"show": true,
"color": { "solid": { "color": "#FF0003" } },
"radius": 10
}],
"drawing":true,
"background-color":"#FFFFFF",

 

Any ideas on how this should be done?

 

Thanks,

Tom George

 

 

 

Accepted Answer
kitty he @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 08:43 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Thomas,

 

User-added items are not supported in the UI theme, and the added items will not work.

You can change the border item under window in theme.json: from "margin":[1,30,1,1] to "margin":[2,30,2,2], which may make it slightly better but will not completely resolve the problem.

 

It will be completely resolved in 2022 R3. Please pay attention to our release update.

 

Regards,

Kitty

Comment
  1. Benjamin Gaesslein
  2. Tuesday, 12 September 2023 08:53 AM UTC
Completely resolved how? Will themed PB windows have the proper grabbable "shadow" border that regular Windows have?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 13 September 2023 19:55 PM UTC
The resize-triggerable area is expanded by several pixels so it is easy to grab.
  1. Helpful
There are no comments made yet.
Julie Jiang @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 08:21 AM UTC
  2. PowerBuilder
  3. # 1

Hi Kevin and Thomas, 

We have plan to fix the resizing issue in 2022 R3. 

Best regards, Julie

Comment
There are no comments made yet.
Benjamin Gaesslein Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 07:16 AM UTC
  2. PowerBuilder
  3. # 2

Hi Thomas,

look for window -> border -> margin in your theme.json. It's a JSON array, the default is this:

"margin":[1,30,1,1]

That's [left, top, right, bottom].
 
I don't think you should be adding anything above "drawing", btw. Or alter the structure at all, in fact. PB can't handle it if the theme.json is structured differently than expected.
Comment
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Monday, 11 September 2023 21:25 PM UTC
  2. PowerBuilder
  3. # 3

That's a known issue with themes.  You might want to report it as a bug or make an enhancement request.  I agree it's a little frustrating at times.

Comment
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.