Difference between revisions of "One or Two Button Trackbar with Styles"

From Lazarus wiki
Jump to navigationJump to search
(New page: === About === ''TrackBar2" is a trackbar component that can be configured in a broad range of different styles and can support either one or two thumb buttons. A two-button trackbar is use...)
 
(Categorization)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
=== About ===
 
=== About ===
''TrackBar2" is a trackbar component that can be configured in a broad range of different styles and can support either one or two thumb buttons.
+
''TrackBar2" is a trackbar component that can be configured in a broad range of different styles (colors, thumb styles, tick styles and so on) and can support either one or two thumb buttons. Where a one-button trackbar is used to define a value, a two-button track bar is useful in defining a range of values between a minimum and a maximum.  I use two two-button trackbars (one vertical, one horizontal) do define a rectangular area of interest in a bitmap image.
A two-button trackbar is useful in defining ranges, or regions in an image.
 
  
The component has been tested under Windows only.  
+
This component is based on the tDCTrack one-button trackbar written by Doug Gregor and widely available on the internet.
  
Its main caracteristics are :
+
The component has been tested under Windows (2000, XP) only. 
 +
 
 +
The main characteristics of Trackbar2 are :
 
* Use one or two thumb buttons.   
 
* Use one or two thumb buttons.   
 
* Allows several different thumb button styles.
 
* Allows several different thumb button styles.
* Allows several different styles of tick mark.
+
* Allows several different tick mark styles.
 
* Allows several different placement options for tick marks.
 
* Allows several different placement options for tick marks.
 
* Allows different colors for ticks, track bar and thumb buttons.  
 
* Allows different colors for ticks, track bar and thumb buttons.  
 +
* Allows vertical and horizontal orientation.
  
The download contains the component, an installation package and a demo application that illustrates the features of the component along with some instrumentation for evaluating the chart on a given system.
+
The download contains the component source and a demo application that illustrates some of the features of the component.  I have not included a package since I suspect that most users will want to define their own registration parameters by modifying the registration procedure in the source file.  
 
 
  
 
=== Screenshot ===
 
=== Screenshot ===
  
Here is an exemple of ''My Component''.  
+
Here is an exemple of several applications of Trackbar2.
  
 
=== Author ===
 
=== Author ===
  
 +
This component is an extension of the work of Doug Gregor.  I have adapted it to allow for two-button configurations.
  
 
=== License ===
 
=== License ===
Line 26: Line 28:
  
 
=== Download ===
 
=== Download ===
 +
 
The latest stable release can be found on ''link to the lazarus-ccr sf download location''.
 
The latest stable release can be found on ''link to the lazarus-ccr sf download location''.
  
 
=== Change Log ===
 
=== Change Log ===
 +
 
* Version 1.0 ''date''
 
* Version 1.0 ''date''
  
 
=== Dependencies / System Requirements ===
 
=== Dependencies / System Requirements ===
* None
 
  
Status: ''Stable / Alpha''
+
This component has been tested under Windows only.  It uses Classes, Messages, Types, LCLType, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls;
  
Issues:  
+
Status: First release
  
 +
Issues:
 +
 +
Windows only as presented.
  
 
=== Installation ===
 
=== Installation ===
* step 1
+
Modify the source to Install into the package of your choice using the standard Lazarus install procedure.
* step 2
 
  
 
=== The ''My Component'' Example Application ===
 
=== The ''My Component'' Example Application ===
  
'''Installation'''
+
This sample Trackbar.exe (for windows) will display a collection of one- and two-button trackbars that can be created using the component.
* Open TestMyComponent.lpi
+
 
* compile
+
[[Category:Proposals]]
* run
 

Latest revision as of 19:16, 30 September 2013

About

TrackBar2" is a trackbar component that can be configured in a broad range of different styles (colors, thumb styles, tick styles and so on) and can support either one or two thumb buttons. Where a one-button trackbar is used to define a value, a two-button track bar is useful in defining a range of values between a minimum and a maximum. I use two two-button trackbars (one vertical, one horizontal) do define a rectangular area of interest in a bitmap image.

This component is based on the tDCTrack one-button trackbar written by Doug Gregor and widely available on the internet.

The component has been tested under Windows (2000, XP) only.

The main characteristics of Trackbar2 are :

  • Use one or two thumb buttons.
  • Allows several different thumb button styles.
  • Allows several different tick mark styles.
  • Allows several different placement options for tick marks.
  • Allows different colors for ticks, track bar and thumb buttons.
  • Allows vertical and horizontal orientation.

The download contains the component source and a demo application that illustrates some of the features of the component. I have not included a package since I suspect that most users will want to define their own registration parameters by modifying the registration procedure in the source file.

Screenshot

Here is an exemple of several applications of Trackbar2.

Author

This component is an extension of the work of Doug Gregor. I have adapted it to allow for two-button configurations.

License

modified LGPL (same as the FPC RTL and the Lazarus LCL). You can contact the author if the modified LGPL doesn't work with your project licensing.

Download

The latest stable release can be found on link to the lazarus-ccr sf download location.

Change Log

  • Version 1.0 date

Dependencies / System Requirements

This component has been tested under Windows only. It uses Classes, Messages, Types, LCLType, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls;

Status: First release

Issues:

Windows only as presented.

Installation

Modify the source to Install into the package of your choice using the standard Lazarus install procedure.

The My Component Example Application

This sample Trackbar.exe (for windows) will display a collection of one- and two-button trackbars that can be created using the component.