I would like to create a spin box on a modal/modeless dialog in dm-script, which enables users to increase or decrease the number value in the text field by clicking up or down arrow buttons (i.e., spin buttons).
Is there an appropriate way to create such a spin box? It will be appreciated if you share some wisdom. Thank you very much in advance.
However, you can build a proxy-spin control by creating and arranging according push-buttons. It is a bit crude, but the following code creates this:
You can then play with looks a bit by using bitmap buttons instead of simple push buttons and setting things up until they look more appealing.
f.e. I created this variant:
With this code: