This is against the Lazarus paradigm: applications should take the look and feel of the native applications of an OS. When macOS decides to draw UpDown buttons in its own way Lazarus will accept it. Look at a TPageControl: completely different in macOS than in Windows. If you really want to give your applications the same look in macOS and Windows you must use a custom-drawn widgetset.
I understand that. I originally decided to use the TUpDown control because it could be used both vertically and horizontally, its size is adjustable, very easy. And under Windows this is still the case. Then I really have to look for another control.
I don't want to disappoint you, but my personal opinion is that a second TArrow component will not be accepted.
That wasn't my intention either. I understood it as an "upgrade" of the existing TArrow control, because it is very easy to handle.
Why don't you use a TSpeedButton?
That is indeed a very good question. In the beginning I was looking for a replacement for the TUpDown control and found TArrow by chance and two TArrows are like a TUpDown.
TSpeedbutton, right, is like a little mystery. I've read the specification (
https://lazarus-ccr.sourceforge.io/docs/lcl/buttons/tspeedbutton.html) more than once, I always don't quite understand it:
- which states are there?
- how can I get the current state?
- can I change the state in the program?
- how do the possible glyphs correspond to the possible states?
- there is a glyph property and an image list property; do both work together or which control is behind it?
The only documentation I found was from Embarcadero 2014 (
http://docwiki.embarcadero.com/Libraries/Sydney/en/Vcl.Buttons.TSpeedButton.Glyph)and concerns states and glyph properties. I don't know, as of which TSpeedbutton in Lazarus also applies.
Nevertheless, I will try to realize my solution with TSpeedbutton.
BTW, under Windows, Speedbutton has such a nice mouse-over background effect; many versions ago, the same thing happened on the Mac. Unfortunately nothing happens now when I move the mouse over the button. It's probably Apple standard, Mac applications don't do that (anymore). I still think it is a nice "responsive design".