Originally CtrlBox is intended solely as a slave of my TitleBarX class when I decided to experiment with shapes for the controls there (minimize, maximize/restore, and close). Later I decided to create it as a master of its own (while still being used by TitleBarX). So now, it can be dragged and dropped onto a form and that will replace your form's native titlebar.
New Features
- Now it auto hides the form's native titlebar
- Now it auto repositions itself onto top-right corner
- New built-in titlebar of its own. I added this today as sometimes I wanted to make the form movable but still using this class. For this new titlebar to appear, you have to set _WithBar = .T. (default is .F. or no titlebar). This is affected further by the following:
- Caption - the caption to be shown on the titlebar
Properties affecting Caption follow:
- FontName = default is Calibri
- FontSize = default is 12
- FontBold = default is .T.
- ForeColor = default is RGB(255,255,255)
- Alignment = default is 2 (center). I know some of you will love to have a caption in the middle
- BarHeight = Default is 20. The height of the titlebar. This also affects the caption height
Properties affecting Titlebar
- BackColor = default is RGB(0,0,0)
- BarHeight = Default is 20.
Old Features
- _NoMax = default is .F., set to .T. to hide maximize/restore control
- _NoMin = default is .F., set to .T. to hide minimize control
Here is the class showing its own titlebar (_WithBar = .T.):
Cheers!
No comments:
Post a Comment