fpGUI icon indicating copy to clipboard operation
fpGUI copied to clipboard

TfpgGauge Border Style

Open JonnyTech opened this issue 8 years ago • 2 comments

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?

JonnyTech avatar Jul 22 '16 09:07 JonnyTech

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;

graemeg avatar Jul 22 '16 16:07 graemeg

Ah, thank you, editing BackgroundDraw helps.

JonnyTech avatar Jul 22 '16 16:07 JonnyTech