Windows Forms has a control NumericUpDown that allows the user to choose a number by clicking tiny up and down arrows, or entering a number via keys.
Is there a way to add this functionality, but accessible from within a menu?
Something like:
Settings
+--# of Players
+--(Item that allows user to input a numeric value)
You can of course get this functionality (with limits) with something like:
Settings
+--# of Players
+-- 1
+-- 2
+-- etc, until how many you want.
But it's not elegant, nor very user-friendly.
I'm using Delphi FMX 12.1, or C# with Visual Studio Community 2022. Either solution is acceptable.
EDIT: Basically I'm looking for the same functionality the Zoom -item provides in Chromium-browsers. (At least Chrome and Brave.)
The menuitem looks something like this:
+---------------------+
+ Zoom (-) 100% (+) +
+---------------------+
The user can click on the (-) and (+) buttons to increase/decrease the displayed value (here 100%).