Difference between revisions of "ATGauge"
From Free Pascal wiki
Jump to navigationJump to searchLine 20: | Line 20: | ||
== Prop ShowTextInverted == | == Prop ShowTextInverted == | ||
− | This | + | This property is to look like Delphi's component. |
− | * Off: text ("20%") painted with color Font.Color at all places. This is fast. | + | |
− | * On: text painted with inverted color regarding image under it. Font.Color ignored. Temp bitmap is created (with a size of text), then | + | * 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. | ||
[[Category:Components]] | [[Category:Components]] |
Revision as of 22:36, 28 October 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 that Delphi 7 code). It has class name and properties, compatible with Delphi 7 version, but different unit name.
"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
Prop 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.