Jazarsoft FormEx 2.1
March 2001
Copyright (c) 2000 Jazarsoft

This code may be used and modified by anyone so long as this header and copyright information remains intact.

The code is provided "as-is" and without warranty of any kind, expressed, implied or otherwise, including and without limitation, any warranty of merchantability or fitness for a particular purpose. 

In no event shall the author be liable for any special, incidental, indirect or consequential damages whatsoever (including, without limitation, damages for loss of profits, business interruption, loss of information, or any other loss), whether or not advised of the possibility of damage, and on any theory of liability, arising out of or in connection with the use or inability to use this software.

Properties

Appearance Accept Files True Allow window to accept dropped file
    False Disallow window to accept dropped file
  AlwaysMinimize Keep your window always in icon, but you need to change WindowState property to wsMinimized before you can use this property.
AnimatedIcon Delay Delay before icon changes
Enabled Enable Animated Icon ?
Icons Your icons....
  Cover Style fcsNone Don't use background
      fcsGradient Use Gradient as background
      fcsImage Use Image as background
    Gradient Source Gradient source color
      Destination Gradient destination color
    Image DrawMethod Select drawing method for the image
      Image Background image (*.bmp)
  Cursor Window cursor filename (*.ani, *.cur)
  FullScreen True Full Screen
    False Window
  ShowOnTaskBar ftsAlways Show on taskbar (like MS Word 2000)
    ftsWhenVisible Show on taskbar only when window is visible
    ftsDefault Never show form on taskbar
  ShowTitleBar True Show window title bar (Caption+Buttons)
    False Hide window title bar
FormSaver Enabled True Enable Form Saver
    False Disable Form Shaper
  Global True Enable save form Information for multi user ?
    False Disable save form Information for multi user ?
  Keyname Registry keyname
  Position True Save form position information
    False Not save form position information
  Size True Save form size information
    False Not save form information
Placement AlwaysOnScreen True Keep window on the screen
    False I've lost my window.... :)
  Margin Left/right/top/bottom minimum & maximum coordinate formex magnetize
window to screen egde.
  TopMost ftmsDefault No Top Most
    ftmsAlways Always on top
    ftmsWhenAcceptFiles Top only on accept file(s)
  Moveable fmsDefault Windows default movement style (click on the caption area)
    fmsAlways Always moveable (click anywhere on window area, except on controls)
    fmsNever Never moveable
Resize BorderWidth Resize Border Width
  Max/Min Width/Height Form's max/min width/height
  Ratio AspectRatio Ratio between form's width & height
    Enabled Enable/Disable Resize by using ratio.
SyeMenuEx System Menu Extension Menu, use your own popup menu. Please make sure you don't use menuitem.tag = 0
TrayIcon CycleIcons Enable / Disable Icons Rotation
  CycleInterval Delay before icon changes
  Enabled Respond user click ?
  Hint Hint for the icon
  Icon Non Animated Icon
  IconList Animated Icon
  Visible Show Icon on TrayBar ?
  LeftPopUp PopUp for left click
  RightPopUp PopUp for right click
  ShowHint Show hint ?

Function/Procedure

procedure SendKeys(WinHandle:Hwnd;Buffer:String); Send Keys to another window
WinExec('notepad.exe',SW_NORMAL);
SendKeys(FindWindowEx(FindWindow('Notepad','Untitled - Notepad'),0,'Edit',''),'FormEx');
Procedure Flash(Number,Delay:Integer); Flashing Window Caption
  FormEx1.Flash(2,100);
procedure CaptureWindow(WinHandle:Hwnd;Filename:String); Capture any window image
If SaveDialog.Execute then
Begin
WinExec('notepad.exe',SW_NORMAL);
FormEx.CaptureWindow(FindWindow('Notepad','Untitled - Notepad'),SaveDialog.Filename);
End;

Events

OnNonClientClick Triggered when the cursor moves, or when a mouse button is  pressed or released in window Area.
OnDropFile Triggered when file(s) dropped on window area
OnMinimize Triggered when form getting minimize.
OnMaximize Triggered when form getting maximize.
OnRestore Triggered when form getting restore
OnBeginSizeMove Triggered when user begin to sizing / moving the window
OnEndSizeMove Triggered when user finished with sizing/moving process
OnTrayIconClick Triggered when click icon on traybar
OnTrayIconCycle Triggered when trayIcon going to change.
OnTrayIconDblClick Triggered when double click icon on traybar
OnTrayIconMouseDown Triggered when user press down mouse button on trayicon.
OnTrayIconMouseMove Triggered when user move pointer at trayicon
OnTrayIconMouseUp Triggered when user release mouse button on trayicon.

  March 16, 2001