1. André Rust
  2. PowerBuilder
  3. Monday, 21 March 2022 09:08 AM UTC

Hi

I use the theme and have all objects customized with it. Now I have a Datawindow object dw_cust in the Windows w_customer. Here the datawindow should not be customized with the theme.

How can I set this in the JSON file?
How can I exclude objects in general?

Thank you for any help.

André

Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 21 March 2022 12:01 PM UTC
  2. PowerBuilder
  3. # 1

Hi.

I'm not sure if this will work. It requires PB 2019 R2+. Never tried if it works with datawindows. But you may try to add a section like (drawing must be set to false):

  "w_customer.dw_cust":
	{
		"drawing":false,
		"background-color-enabled":true,
		"background-color":"#FFFFFF",
		"normal-state":
		{
			"border-color":"#CCCCCC"
		},
		"disabled-state":
		{
			"border-color":"#F0F0F0"
		},
		"dwo-button":
		{
			"drawing":true,
			"normal-state":
			{
				"border-color":"#B3D7F3",
				"background-color":"#B3D7F3",
				"text-font":{"color":"#000000"}
			},
			"hover-state":
			{
				"border-color":"#3393DF",
				"background-color":"#3393DF",
				"text-font":{"color":"#FFFFFF"}
			},
			"pressed-state":
			{
				"border-color":"#0060AC",
				"background-color":"#0060AC",
				"text-font":{"color":"#FFFFFF"}
			},
			"default-state":
			{
				"border-color":"#0078D7",
				"background-color":"#0078D7",
				"text-font":{"color":"#FFFFFF"}
			},
			"disabled-state":
			{
				"border-color":"#CCCCCC",
				"background-color":"#CCCCCC",
				"text-font":{"color":"#999999"}
			}
		},
		"dwo-column":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC",
			"background-color":"#FFFFFF",
			"text-font":{"color":"#000000"},
			"checkbox-type":
			{
				"drawing":true,
				"normal-state":
				{
					"box-images":
					{
						"unchecked":{"file":"checkbox-box-normal-unchecked.bmp"},
						"checked":{"file":"checkbox-box-normal-checked.bmp"},
						"indeterminate":{"file":"checkbox-box-normal-indeterminate.bmp"}
					}
				},
				"hover-state":
				{
					"box-images":
					{
						"unchecked":{"file":"checkbox-box-hover-unchecked.bmp"},
						"checked":{"file":"checkbox-box-hover-checked.bmp"},
						"indeterminate":{"file":"checkbox-box-hover-indeterminate.bmp"}
					}
				}
			},
			"dropdown-type":
			{
				"drawing":true,
				"selected-row-text-color":"#000000",
				"selected-row-background-color":"#CDE8FF",
				"unselected-row-background-color":"#FFFFFF",				
				"normal-state":
				{
					"background-color":"#FFFFFF",
					"arrow-image":{"file":"dropdownlistbox-arrow-normal.png"}
				},
				"hover-state":
				{
					"background-color":"#FFFFFF",
					"arrow-image":{"file":"dropdownlistbox-arrow-hover.png"}
				}
			},
			"editmask-type":
			{
				"drawing":true,
				"spin":
				{
					"normal-state":
					{
						"images":
						{
							"top-button":{"file":"dwo-editmask-spin-top-button-normal.png"},
							"bottom-button":{"file":"dwo-editmask-spin-bottom-button-normal.png"}
						}
					},
					"hover-state":
					{
						"images":
						{
							"top-button":{"file":"dwo-editmask-spin-top-button-hover.png"},
							"bottom-button":{"file":"dwo-editmask-spin-bottom-button-hover.png"}
						}
					}
				},
				"dropdownarrow":
				{
					"normal-state":
					{
						"arrow-image":{"file":"dropdownlistbox-arrow-normal.png"}
					},
					"hover-state":
					{
						"arrow-image":{"file":"dropdownlistbox-arrow-hover.png"}
					}
				}
			},
			"radiobuttons-type":
			{
				"drawing":true,
				"normal-state":
				{
					"radio-images":
					{
						"unchecked":{"file":"radiobutton-radio-normal-unchecked.png"},
						"checked":{"file":"radiobutton-radio-normal-checked.png"}
					}
				},
				"hover-state":
				{
					"radio-images":
					{
						"unchecked":{"file":"radiobutton-radio-hover-unchecked.png"},
						"checked":{"file":"radiobutton-radio-hover-checked.png"}
					}
				}
			}
		},
		"dwo-compute":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC",
			"background-color":"#FFFFFF",
			"text-font":{"color":"#000000"}
		},
		"dwo-graph":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC"
		},
		"dwo-groupbox":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC",
			"background-color":"#FFFFFF",
			"text-font":{"color":"#000000"}
		},
		"dwo-inkpicture":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC"
		},
		"dwo-ole":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC"
		},
		"dwo-oledatabaseblob":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC"
		},
		"dwo-picture":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC"
		},
		"dwo-tableblob":
		{
			"drawing":true,
			"border":0,
			"border-color":"#CCCCCC"
		},
		"dwo-text":
		{
			"drawing":true,
			"border":2,
			"border-color":"#CCCCCC",
			"background-color":"#FFFFFF",
			"text-font":{"color":"#000000"}
		},
		"cross-style":
		{
			"drawing":true,
			"head-band":
			{
				"background-color":"#0078D7",
				"dwo-text-font":{"color":"#FFFFFF"}
			},
			"detail-band":
			{
				"selected-row-text-color":"#000000",
				"selected-row-background-color":"#CDE8FF",
				"unselected-row-background-color":"#FFFFFF"
			},
			"grid-line":
			{
				"horizontal-line":true,
				"vertical-line":true,
				"line-color":"#E8EFF8"
			},
			"dwo-column":
			{
				"border":2,
				"border-color":"#CCCCCC",
				"background-color":"#FFFFFF",
				"text-font":{"color":"#000000"}
			},
			"dwo-text":
			{
				"border":2,
				"border-color":"#CCCCCC",
				"background-color":"#FFFFFF",
				"text-font":{"color":"#000000"}
			},
			"dwo-compute":
			{
				"border":2,
				"border-color":"#CCCCCC",
				"background-color":"#FFFFFF",
				"text-font":{"color":"#000000"}
			}
		},
		"grid-style":
		{
			"drawing":true,
			"head-band":
			{
				"background-color":"#0078D7",
				"dwo-text-font":{"color":"#FFFFFF"}
			},
			"detail-band":
			{
				"selected-row-text-color":"#000000",
				"selected-row-background-color":"#CDE8FF",
				"unselected-row-background-color":"#FFFFFF"
			},
			"grid-line":
			{
				"horizontal-line":true,
				"vertical-line":true,
				"line-color":"#E8EFF8"
			},
			"dwo-column":
			{
				"border":2,
				"border-color":"#CCCCCC",
				"background-color":"#FFFFFF",
				"text-font":{"color":"#000000"}
			},
			"dwo-text":
			{
				"border":2,
				"border-color":"#CCCCCC",
				"background-color":"#FFFFFF",
				"text-font":{"color":"#000000"}
			},
			"dwo-compute":
			{
				"border":2,
				"border-color":"#CCCCCC",
				"background-color":"#FFFFFF",
				"text-font":{"color":"#000000"}
			}
		}
	},

Andreas.

Comment
  1. André Rust
  2. Monday, 21 March 2022 12:21 PM UTC
Thx, this sample works.

André
  1. Helpful
  1. John Fauss
  2. Monday, 21 March 2022 17:50 PM UTC
That's great news, Andre. Would you please mark your question as resolved? Thank you!
  1. Helpful 1
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.