TEdgeForm 2.0

By Ron Collins

Freeware 13 Jun 2001

In category

Components > Forms > Complex forms

Description

This form simulates the Windows-style "auto-hide" START menu tool bar. This form sits against an edge of the screen (left, right, top, or bottom) and will automatically shrink itself down to a thin line when there is no activity on the form. If the mouse pases over it, the form autmatically expands itself back to its full size mode. The user may use the mouse to resize the form, or to move it to a new screen edge, just like the Window START menu bar. The OnResize form event is called whenever the form shrinks or expands; in addition, OnResize is called whenever the form is moved to a new location (Delphi does not have an OnMove event, so we use OnResize to maintain a consistant interface). There are two components already defined on the form: a panel component (efPanel) and a timer (efTimer). These need to stay as they are. Any new components you add to the form (buttons, labels, etc) should be placed on top of the panel. This way they can be safely tucked away when the form is shrunken to a thin line along the edge of the screen. In addtion, you may use any of the standard Delphi events for the form (or the panel) such as OnResize, OnKeyPress, OnMouseDown, etc. One event is already defined: OnCreate. This event calls the initialization for the rest of the TEdgeForm functions; however, you may insert your own code right after the initialization routine. It is strongly recommended that you not modify any field or routine whose name starts with "ef" (such as ’efFindEdge’, ’efDoMouseMove’, etc) as these are the heart of the TEdgeForm. Only if you really understand what is going on should to change them.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 10 111kB

Platforms:

  • Delphi 5

Downloads