Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

New Post: Suggestions for Themed TItle Bar

$
0
0
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

Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>