Spin button with side buttons

Hi, I want to use the Gtk::SpinButton, but I want to locate the buttons (-+) in both sides. By default they are both located on the right. Am I missing a simple attribute or must I create my own Spin Button? Thx

GtkSpinButton does not allow moving buttons to either sides of the entry; you will need to write your own widget to achieve that effect.

2 Likes

Ok, I’ll write a custom widget then. I’ll be using a scale instead of an entry, how can I customize the scale properties? I want to change the bar’s and the indicator’s style (width, color, shape).

You probably should use CSS for that. Check the “CSS nodes” section of the GtkScale documentation.

1 Like