Clarion FreeImage
 
  Menu
  Home
  Download
  Related Projects
  What's Next?
  Contact Us
  FAQ
 
    Links
  SoftVelocity
  FreeImage
 
  Donate
   Make a Donation

New Version 3.15.8 (2018.12.20)
available now.

  

Scanning with EzTwain Classic

Enumerate Multiple Displays

Progress and Status bar common controls

Classy Buttons

Smooth Scrolling Control

Scanning with EzTwain Classic

This example contains three classes. A base class that wraps the functionality of EzTwain Classic DLL, a derived class to scan into a Clarion FreeImage control, and a derived class to scan into a stock Clarion image control. There are two example projects, one illustrates how to use the FreeImage control and the other shows the use of the Clarion Image control. There's a read me file included in the archive with basic instructions.

EzTwain Classic is kindly supplied by the folks at dosadi.com.

Do this to get your copy:

1

If you don't already have it Download the Clarion FreeImage project setup program. Extract and run this first.

 

2

Download the example project that illustrates how to scan using the Clarion FreeImage control or a stock Clarion Image control.

 

Progress and Status bar examples

Scanning with EzTwain Classic example project

 

Enumerate Multiple Displays

Example of how to enumerate the displays on a multi-monitor system. This is a hand coded example that illustrates how to call the EnumDisplayMonitors and GetMonitorInfo Windows API Functions.

Note: That these functions are not available on Windows 95 or Nt 3 and 4.

Do this to get your copy:

1

If you don't already have it Download the Clarion FreeImage project setup program. Extract and run this first. The SaWapi.inc file from at least version 3.9.2.1 is required.

 

2

Download the example project that illustrates how to enumerate the display monitors.

 

Progress and Status bar examples

Enumerate Display Monitors Example project

 

Progress and Status bar common controls

Have you ever wanted vertical progress bars? How about using progress bars and icon's on the status bar? These two classes wrap the progress bar and status bar common controls. These are the classes used in Capesoft's FeMail Clarion accessory. Both classes are supplied as source code. The archive includes two test projects. One illustrates the use of the progress bar class, the other shows how to use the status bar class.

Progress bar class features:

  • Vertical or horizontal orientation
  • Smooth* or segmented
  • Set bar and background color*
  • Three methods to update status, step, delta, and absolute position
  • Ability to set the minimum an maximum range

*Styles supported only when a manifest is not used

Status bar class features:

  • Set the number and size of status bar parts
  • Change the text in a part
  • Change the icon in a part, icon may be linked as a resource
  • Change the tool tip in a part
  • Add a progress bar to a part
  • Detect mouse clicks in status bar part, including exact mouse position

These classes do not require that you distribute the FreeImage.DLL and is not subject to its license restrictions. I does use some of the files distributed with the Clarion FreeImage Project

Do this to get your copy:

1

Download the Clarion FreeImage project setup program. Extract and run this first. At least version 3.9.2.1 is required.

 

2

Extract and run the ClarionFreeImage.exe setup program.

 

3

Download the Progress and status bar class source code.

 

4

Create a folder and unzip the source code files. Load the .prj files and compile the demos.

 

Progress and Status bar examples

Progress and status bar common control test projects.

 

Classy Buttons

Use the Clarion FreeImage Project libraries to add alpha blended owner drawn buttons to your Clarion program. These buttons allow you to specify separate images for 4 states (normal, hot (mouse over), selected, and disabled). Only the normal state button is required all other button state images are created from the normal state for you. The buttons support all the features of a standard button control. They are standard button controls.

The really cool thing about these buttons is they allow you to make a button of any shape. You supply an image in a file format that supports alpha transparency, I suggest png, and the classy buttons class takes care of making any part of the image that's completely transparent part of the background. Areas that are semi-transparent are blended with the background.

There's a limitation in the method used to capture the background image to blend the button. Suggestions are welcome on a way to redesign the class to reference the background image. This is an alpha code release so you should only use it for testing.

The class includes a routine to calculate a Windows region from the alpha transparency of the image. This can be an expensive process for a complex image. So there's an example project that allows you to save the region file to disk. You then add these region files to your project where the class loads them from a resource.

2015-05-22 Fixed button position and added new parameter to init that acccpets any Clarion color code, omit or use Color:None for the original behavior

Do this to get your copy:

1

Download the Clarion FreeImage project setup program. Extract and run this first. At least version 3.9.2.1 is required.

 

2

Extract and run the ClarionFreeImage.exe setup program.

 

3

Download the Classy Buttons class source code.

 

4

Create a folder and unzip the source code files. There are no templates or other documentation at this time.

 

 

Classy Buttons Region Designer

Region Creator example.

 

Smooth Scrolling control

Have you ever wanted to have smooth scrolling text displayed in an about box, or a list of items that scrolls continuously. Use your imagination for how to put this little control to use. In the spirit of the Clarion FreeImage Project this control is also free. It makes use of some of the classes used in the Clarion FreeImage Project and is dependent on it being installed first.

This control does not require that you distribute the FreeImage.DLL and is not subject to its license restrictions.

Do this to get your copy:

1

Download the Clarion FreeImage project setup program. Extract and run this first. At least version 3.9.2.1 is required.

 

2

Extract and run the ClarionFreeImage.exe setup program.

 

3

Download the Smooth Scrolling control installer.

 

4

Extract and run the SmoothScroll.exe setup program.

 

The Smooth Scrolling control includes simple documentation of the templates, use of the class in hand code and public methods.

Scrolling control example

Scrolling Control Example project.