FNCToolbar control rounding

Toolbar controls such as the font name and size pickers respond to setting the Appearance.Rounding value, but not the TTMSFNCToolBarButton - it's corners don't change.

Also, the rounded corners on the controls that do work look pretty bad - is it possible to get anti-aliased borders?

Thanks, Bob

Hi Bob,

We have checked it here and see rounding can apply on a TTMSFNCToolBarButton:

image

Anti-Aliased borders can be achieved by using the following workaround:

type
  TTMSFNCToolBarButtonOpen = class(TTMSFNCToolBarButton);

procedure TForm12.FormCreate(Sender: TObject);
begin
  TTMSFNCToolBarButtonOpen(TMSFNCToolBarButton1).NativeCanvas := True;
  TMSFNCToolBarButton1.Repaint;
end;

Hi Pieter - I realise now what's different - I was using flatstyle = true on the button and = false on the font control. So is rounding not possible with flat style?

Thanks, Bob

This is by design, flatstyle is forcing a normal rectangle. Only when flatstyle is false, a rounded rectangle is drawn.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.