Cocoa Internals/Buttons

From Lazarus wiki
Revision as of 05:51, 17 December 2017 by Skalogryz (talk | contribs) (→‎See Also)
Jump to navigationJump to search

Despite of being a very basic control, buttons are complicated topic on macOS.

LCL Button OSX Button / Bezel Description
TButton Push Button

NSRoundedBezelStyle

Per macOS design guidelines, Push buttons should only have labels on them, and no Icons. This is exactly, how LCL TButton behaves.

The biggest issue, is that macOS Push Buttons are of the fixed height. While LCL buttons can be any height.

The approach similar to Carbon implementation could be used - after a certain hight the button changes its bezel.

See Also