1. sekhar sai
  2. PowerBuilder
  3. Thursday, 19 November 2020 05:37 AM UTC

We have applied Theme in the object by using "applytheme()" function in open event of window (Screen A) and It was working as expected.

 

But without closing the screen A, if we try to open another screen (Screen B) which we have not applied theme but still the Screen B also effected with theme which we were not expected.

 

We scripted in Close event of Screen A by using “no theme”. After closing the Screen A and open Screen B then during this time theme not applied on screen B. But in normal scenario business user keep opening several screens together in the same session. So, during that time where the screens not having the theme to be applied but it was applied due to the screen A script that was opened along with other screens.

 

Please not that we have not applied theme in application level for the above cases.

 

Kindly advise if you have any solution.

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 19 November 2020 15:35 PM UTC
  2. PowerBuilder
  3. # 1

ApplyTheme applies theme to the whole application not a specific window, and we recommend you put this in the open event of the application object.

To apply different look to different instances of Windows or controls, you can make exceptions.  Watch this section of the UI Themes presentation from Elevate 2020:  https://youtu.be/XFB_NvGrEC8?t=921

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 19 November 2020 17:08 PM UTC
In addition to what Armeen has recommended about setting the Theme on the Application Object OPEN event ... I have been able to allow the App User to change the theme in open PB Apps - but when they do request a theme change, I issue a RESTART() command to make sure that the app comes back 100% themed. Food for thought.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 19 November 2020 17:11 PM UTC
Good point Chris!
  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.