1. David Peace (Powersoft)
  2. PowerBuilder
  3. Friday, 22 September 2023 15:24 PM UTC

Hi

Justa quick question, what is the best way to stop Themeing being applied to a specific window and it objects? We do not want to Theme the sign in window of the application (a graphic designer has spent hours designing it).

I added a specific window section for the window like below in the excepion json file and set drawing to false, but the theme is still being applied to the objects on the window.

"w_sign_on":
        {
            "drawing":false,
            "background-color":"#FFFFFF",
        "title":
        {...

 

Do I need to specify every object as an exception? or is there a better way to do this?

Powerbuilder 2022 build 1900 for info.

Many thanks

David

Accepted Answer
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Monday, 25 September 2023 14:11 PM UTC
  2. PowerBuilder
  3. # Permalink

Having played with various ideas, the end result is that you have to have a Theme override exception for every object o the Window. It's a bit tedious but it works.

 

Comment
  1. mike S
  2. Monday, 25 September 2023 15:10 PM UTC
It would be good to have an override option that applies to an object and any objects on that object (windows, tabs, user objects, ...)
  1. Helpful 1
There are no comments made yet.
kitty he @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 26 September 2023 03:28 AM UTC
  2. PowerBuilder
  3. # 1

Hi David,

 

The UI Theme is customized according to a certain control. The window control only represents the window itself and does not include controls on the window. You can use window_name$statictext to control the UI of all statictext controls on the window and set drawing is false.

 

Regards,

Kitty

Comment
  1. David Peace (Powersoft)
  2. Tuesday, 26 September 2023 07:25 AM UTC
Hi Kitty

I had not picked up the subtlety of that, very useful to know :)
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 25 September 2023 16:51 PM UTC
  2. PowerBuilder
  3. # 2

If some day I'm really bored (highly unlikely), we could write an app that allows you to pick a window, drill down the controls on top of it and allow to check/uncheck objects before generating an exception json file for the unchecked objects/controls.

Comment
There are no comments made yet.
Ronnie Po Accepted Answer Pending Moderation
  1. Friday, 22 September 2023 17:39 PM UTC
  2. PowerBuilder
  3. # 3

Hi David,

I haven't tried lately, but according to the documentation, you have to put that specific window section in it's own file named theme-[any name].json

 

Comment
  1. David Peace (Powersoft)
  2. Saturday, 23 September 2023 07:14 AM UTC
Yes, that's what i did. But the theme is still applied to statictext controls etc...
  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.