Navigation bar
  Home Print document Start Previous page
 138 of 234 
Next page End  

Gravitybox Schedule Primer
Page 136 
1998-2004 Gravitybox Software LLC
may be placed.
Enabled
Determines if the control may accept user interaction.
Font
Determines the font used to display the caption.
ForeColor
Determines the text color of the caption.
HeaderBackColor
Determines the color of the background of the header
portion of the control only.
When the control is resized you may wish to resize its contained controls in the “Resize”
event. This task is made easier by the four properties “ClientLeft”, “ClientTop”,
“ClientWidth”, and “ClientHeight”. These properties return the coordinates of the client
area where constituent controls are to be displayed.
A TitleBar may be used as a screen as well, while its
header will double as the screen’s caption if necessary.
When placed on a form with no controlbox and no caption
the TitleBar’s header can be made to accept mouse clicks and move the form as a
normal form caption would. When its property “AllowAsCaption” is set to true, the user
may click in the header portion and the entire form will move as if the form’s title bar
was clicked and dragged. When using the control in this fashion you may catch the
“ALT-F4” key sequence as well to close a form. If the “AllowALTF4” property is set to
true, this key combination will raise the “ButtonClick” event just as if the button was
pressed. This allows your form to act just as a real window would. There is a piece of
code that must be added for this functionality to perform properly. When the user clicks
the header to move the form the event “GetContainerhWnd” is raised. The parameter
“lHwnd” must be set to the hWnd property of the window that is to be moved. If this
parameter in this event is not set, the window will not move as expected. 
Notes Control
The Notes control allows you add the ability to store arbitrary text strings in your
application. This control may display in three distinct ways so that you may customize
the look and feel of your application. The note objects are just text that is displayed with
a note icon. This is modeled after the Notes section of MS-Outlook.
Figure 13.9
Quick Tip
A user may move a screen with a
TitleBar by dragging its caption, if the
“AllowAsCaption” property is true.
http://www.purepage.com