Difference between revisions of "ATGauge"

From Lazarus wiki
Jump to navigationJump to search
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= About =
+
==About==
  
''ATGauge'' is OS-independant progress indicator component. It's made like Delphi's TGauge (named the same). The same properties (with some addons) but totally new code (it's much smaller that D7's one).
+
''ATGauge'' is OS-independant progress indicator component. It's like Delphi TGauge. The same properties (with some additions) but totally new code (it's smaller than Delphi 7 code). It has class name and properties compatible with the Delphi 7 version, but different unit name.
 +
 
 +
[[File:atgauge.png]]
  
 
"Kind" property supports same kinds as D7:  
 
"Kind" property supports same kinds as D7:  
 
 
* only text  
 
* only text  
 
* horiz bar  
 
* horiz bar  
Line 13: Line 14:
 
Author: Alexey Torgashin (Russia)
 
Author: Alexey Torgashin (Russia)
  
= License =
+
License: MPL 2.0 or LGPL.
 
 
MPL 2.0 or LGPL.
 
 
 
= Download =
 
 
 
Latest version, with demo app, is at https://github.com/Alexey-T/ATGauge/
 
 
 
= Requirements =
 
  
* Lazarus: 1.4.0.
+
== Download ==
* Tested on: Linux gtk2 (Ubuntu 14.04).
+
Homepage at github: https://github.com/Alexey-T/ATFlatControls
  
= Installation =
+
== Property ShowTextInverted ==
 +
This property is to look like Delphi's component.
  
* Download zip file from Github using "Download ZIP" button.
+
* Off: text (e.g. "20%") is painted with color Font.Color at all places. This is fast.
* Open package file (.lpk), compile and install.
+
* On: text is painted with inverted color regarding image under it. Font.Color is ignored. Temp bitmap is created (with a size of text), then this bitmap is copied over image-bitmap with Canvas.CopyMode=cmSrcInvert. This is slower and don't work on GTK2 (I see pixelated text over green bar). This is OK on Windows and QT.
* Restart ide, see tab "Misc" of component pallete.
 
  
 +
[[Category:Lazarus]]
 
[[Category:Components]]
 
[[Category:Components]]

Latest revision as of 14:06, 16 December 2021

About

ATGauge is OS-independant progress indicator component. It's like Delphi TGauge. The same properties (with some additions) but totally new code (it's smaller than Delphi 7 code). It has class name and properties compatible with the Delphi 7 version, but different unit name.

atgauge.png

"Kind" property supports same kinds as D7:

  • only text
  • horiz bar
  • vert bar
  • needle (half-circle)
  • pie (full circle)

Author: Alexey Torgashin (Russia)

License: MPL 2.0 or LGPL.

Download

Homepage at github: https://github.com/Alexey-T/ATFlatControls

Property ShowTextInverted

This property is to look like Delphi's component.

  • Off: text (e.g. "20%") is painted with color Font.Color at all places. This is fast.
  • On: text is painted with inverted color regarding image under it. Font.Color is ignored. Temp bitmap is created (with a size of text), then this bitmap is copied over image-bitmap with Canvas.CopyMode=cmSrcInvert. This is slower and don't work on GTK2 (I see pixelated text over green bar). This is OK on Windows and QT.