This property, added in VFP 6, makes creating a form without a title bar a whole lot easier.
oForm.TitleBar = nHasTitleBar
nHasTitleBar = oForm.TitleBar|
Parameter |
Value |
Meaning |
|
nHasTitleBar |
0 |
The form has no title bar. |
|
1 |
The form has a title bar. |
Before this property was added, removing the title bar from a form (say, to create a splash screen) was a pain. You had to set a whole bunch of properties. (See BorderStyle for the whole list.) Now you need just one, and all the others don't matter.
* Check whether the active window has a title bar
IF _SCREEN.ActiveForm.TitleBar = 1
_SCREEN.ActiveForm.Caption = "April Fool!"
ENDIFBorderStyle, Caption, Closable, ControlBox, MaxButton, MinButton, Movable, ShowWindow

