1. Brad Wery
  2. PowerBuilder
  3. Tuesday, 29 September 2020 20:44 PM UTC

Is it possible to prevent a specific window or user object from having a theme applied to it?

e.g. w_main would have no theme at all.

I created a new theme-[xxxx].json file. I added blank entries for my objects:

"w_main":

{

}

The window is still themed.

It looks like PB will look in the theme-[xxxx] files first, then apply generic settings from theme.json.

Is it also possible to target an ancestor object?

Accepted Answer
Ronnie Po Accepted Answer Pending Moderation
  1. Tuesday, 29 September 2020 21:04 PM UTC
  2. PowerBuilder
  3. # Permalink

I believe you have to include

"drawing":false

inside the bracketed section for w_main.

Unfortunately, themes (as of the current version) are not object-oriented aware.

 

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 30 September 2020 00:08 AM UTC
Ronnie is exactly right. Check the "How to turn off UI Theme at runtime" in this tech article: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/301-applying-a-new-ui-theme-to-your-application-2
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 September 2020 21:30 PM UTC
  2. PowerBuilder
  3. # 1

A bit late, since I posted this on a completely wrong ticket as a comment:

 

As an example:

I only apply themes to "tabs". Here is the contents of my "theme-exclusions.json" to exclude a window called "w_combo_list_cq":

{
	"meta-info":
	{
		"version":"190"
	},
	"w_combo_list_cq$tab":
	{
		"drawing":false
	}
}
Comment
There are no comments made yet.
Brad Wery Accepted Answer Pending Moderation
  1. Thursday, 1 October 2020 15:16 PM UTC
  2. PowerBuilder
  3. # 2

Thanks everyone. Drawing: false was the key.

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.