Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Small Change to TplGnouMeterUnit.pas 12 years 5 months ago #2069

  • Curt
  • Curt's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
I made a small change to the TplGnouMeterUnit.pas unit. I was using this control on
a darker image background and found that there was no way to change the color
of the font displayed (black) with the control. Upon looking at the source I added
a "font" property so that the color of the displayed text could be adjusted.
Then just rebuild and you now have font capability.
Now I can see the text!

Indie

unit TplGnouMeterUnit;

published
property Align;
property Caption;
property Visible;
property Value : Double read fValue write SetValue;
property Color;
property Font; <-Added property
property ParentColor;
property ColorFore : Tcolor read fColorFore write SetColorFore;
property ColorBack : Tcolor read fColorBack write SetColorBack;
property SignalUnit : ShortString read fSignalUnit write SetSignalUnit;
property ValueMin : Double read fValueMin write SetValueMin;
property ValueMax : Double read fValueMax write SetValueMax;
property Digits : Byte read fDigits write SetDigits;
property Increment : Double read fIncrement write SetIncrement;
property ShowIncrements : Boolean read fShowIncrements write SetShowIncrements;
property Transparent : Boolean read GetTransparent write SetTransparent;
property GapTop : Word read fGapTop write SetGapTop;
property GapBottom : Word read fGapBottom write SetGapBottom;
property BarThickness : Word read fBarThickness write SetBarThickness;
property MarkerColor : TColor read fMarkerColor write SetMarkerColor;
property ShowMarker : Boolean read fShowMarker write SetShowMarker;

Please Log in or Create an account to join the conversation.

Last edit: by Curt. Reason: added info

Re: Small Change to TplGnouMeterUnit.pas 12 years 5 months ago #2072

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1