Hi Markus.
Here are a couple of suggestions:
Here are a couple of suggestions:
-
Don't require the user to add ThemedTitleBarDescription and ThemedTitleBarImage properties to their form but instead have those properties of ThemedTitleBarBase and then set them in the Properties window when the subclass is added to the form.
-
Why can't someone use ThemedTitleBarBase instead of having to subclass it?
-
Changing nTitleBarBackColor of the ThemedTitleBarSettings object doesn’t change the title bar color of any forms that are already open. The following code in Init would handle that:
bindevent(loSettings, 'nTitleBarBackColor', This, 'RefreshColors', 1)
bindevent(loSettings, 'nTitleBarForeColor', This, 'RefreshColors', 1)
RefreshColors has this code:with _screen.ThemedTitleBarSettings
This.BackColor = .nTitleBarBackColor
This.lblCaption.ForeColor = .nTitleBarForeColor
This.edtDescription.ForeColor = .nTitleBarForeColor
endwith
Doug