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

Updated Wiki: ThemedTitleBar

$
0
0

38209 ThemedTitleBar

38236

Project Manager: Markus Winhard

*38362Download latest release

*38362 If you have questions or find bugs, please use the DISCUSSIONS button above.

The TitleBar of a VFP form displayed ‘In Screen’ or ‘In Top-Level Form’ looks a bit outdated nowadays. At least running in Win8 and compared to Office 2013 or Visual Studio 2013. The goal of this project is to provide a modern drop-in replacement for the default TitleBar, requiring no code changes to existing forms.

Before adding ThemedTitleBar:
FormWithoutThemedTitleBar.PNG

After adding ThemedTitleBar:
FormWithThemedTitleBar.PNG

How to:
  1. Include ThemedTitleBar.vcx and ThemedTitleBarBase.vcx in your project.
  2. Drop the ThemedTitleBar class on every form where you want to use it.
That's it.

Tweaks:
  • ThemedTitleBar.lAutoMoveFormControls=.T.: Moves the controls on your form downward to make room for itself. This happens between first Form.Show() and first Form.Activate(). Set to .F. to suppress this behavior.
  • Add properties ThemedTitleBarDescription and ThemedTitleBarImage to your form base class. Set them at the form level.
  • If you don't like the property names ThemedTitleBarDescription and ThemedTitleBarImage you can change their names in the ThemedTitleBar class. Please see it's properties cDesciptionProperty and cImageProperty.
If you want to display a description below he form caption, create a property "

Full source code history of ThemedTitleBar is hosted in the repository under the SOURCE CODE button above.

Viewing all articles
Browse latest Browse all 3798

Trending Articles



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