ATGauge

From Lazarus wiki
Revision as of 18:06, 30 July 2015 by Alextp2 (talk | contribs) (Prop descr.)
Jump to navigationJump to search

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).

"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

Latest version, with demo app, is at https://github.com/Alexey-T/ATGauge/

Requirements

  • Lazarus: 1.4.0.
  • Tested on: Linux gtk2 (Ubuntu 14.04).

Installation

  • Download zip file from Github using "Download ZIP" button.
  • Open package file (.lpk), compile and install.
  • Restart ide, see tab "Misc" of component pallete.

Prop ShowTextInverted

This prop is for look like Delphi.

  • Off: text ("20%") painted with font color Self.Font.Color at all places. This is faster.
  • On: text painted with inverted color regarding image under it. Font.Color ignored. Temp bitmap is created (with a size of text) to make it possible, then bitmap is copied over image-bitmap with Canvas.CopyMode=invert. This is slower and don't work on Gtk2 (I see very very pixelated text over green bar).