Making a new button component that looks like the TComboBox button lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- carl_caulkett · 2017-07-09 19:54 Lazarus 1.8 RC3 macOS 10.12.5 Sierra Hello, I would like to make a new button component which looks just like the button in a TComboBox control. I've experimented with overriding the PaintBackground method in a TSpeedButton descendent but can't seem to fill the entire button area. I suspect the answer may lie in overriding the underlying widget set behaviour, but all my component experience is with Delphi and Windows so I don't want to go down the wrong route and waste lots of time. Can anyone help here? Thanks, Carl ---------------------------------------------------------------------- carl_caulkett · 2017-07-09 21:03 My understanding is that Lazarus on the Mac defaults to using the Carbon widget set, and indeed, I've found references to classes such as TCarbonButton and TCarbonBitbtn, so maybe this may help me. On the other hand, I have also heard it said, mainly from Phil Hess, that eventually Carbon is going to be superseded by the Cocoa widget set. I am naturally wary of painting myself into a corner by adopting the wrong technology, so I would welcome anyone's opinions on these issues... Thanks in advance, Carl