1. gili galili
  2. PowerBuilder
  3. Tuesday, 24 May 2022 08:16 AM UTC
Hi All,

What is the way to change the color of the title bar of the main window of the application(frame)?
please find the attached example
Regards, Marina
Attachments (1)
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 24 May 2022 12:57 PM UTC
  2. PowerBuilder
  3. # 1

The window title bar color is a system-wide setting, it applies to all programs running on the computer.

The only way around it would be to set the titlebar property to false and create a titlebar replacement control. It would need to support dragging the window and have at least a close button in the upper right.

 

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 24 May 2022 08:43 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

First of all, in screenshot you provided you included also menu with titlebar. This is wrong, as those are two different objects.

Themes may be a solution to that question. But it may not be what you want.

If you want more information about themes, look at the following links:

New UI theme - - What's New (appeon.com)

Enhanced UI Theme - - What's New (appeon.com)

For window object you do have the following declaration in theme.json that is related to title:

"title":
{
	"active-state":
	{
		"background-color":"#FFFFFF",
		"text-font":{"color":"#000000"}
	},
	"inactive-state":
	{
		"background-color":"#FFFFFF",
		"text-font":{"color":"#999999"}
	}
},

Background color is what needs to be modified.

But this would affect all windows. To make it affect only the frame you should disable all other controls and add a section for the specific object you open as frame:

  "w_your_frame_control": // here you should add all the code from window and modify title...
 {
   ...
   //Copy the settings from the "window" node
   //of the "theme.json" file and then modify.
 }

Setting "drawing":false to all other controls will disable them... But for your frame you should be able to customize all available parts in json file.

Andreas.

Comment
  1. gili galili
  2. Tuesday, 24 May 2022 09:11 AM UTC
I know that in my example there is a color change also of the menu(I managed to change the menu color).

I have an issue only with the title bar.



Thank you Andreas.
  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.
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.