Suggestions for Themed TItle Bar

Topics: Enhancement Request
Coordinator
Oct 20, 2015 at 9:54 PM
Edited Oct 20, 2015 at 9:54 PM
Hi Markus.

Here are a couple of suggestions:
  1. 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.
  2. Why can't someone use ThemedTitleBarBase instead of having to subclass it?
  3. 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
Developer
Oct 28, 2015 at 2:23 PM
Agreed on #1.

For #3, What if I want different colored title bars on different types of forms? #3 would stop that from working. Easy to override though, I guess.