fpGUI
fpGUI copied to clipboard
TfpgGauge Border Style
Using a TfpgGauge of kind gkPie and BorderStyle set to bsNone still has a border.
I see in fpg_gauge.pas:
procedure TfpgBaseGauge.SetBorderStyle(AValue: TBorderStyle);
begin
if AValue <> FBorderStyle then
begin
FBorderStyle := AValue;
{ TODO: Implement Border style }
// Graeme: Wouldn't descending from TfpgBevel give you this functionality already?
// It could be a option.
//RePaint;
end;
end;
If I am reading it right, the border style is not implemented. Are there any 'hacks' to remove the border?
I have a partially complete local branch where I'm completely reworking border style for widgets. The new code also shares the borderstyle code with all relevant widgets, whereas currently such code is duplicated in each widget.
I'll try and get that branch completed and merged as soon as possible. But in the mean time if you want, you can comment out the relevant code in TfpgBaseGauge.BackgroundDraw;
Ah, thank you, editing BackgroundDraw helps.