No, sorry. The spin button in GTK is not much customizable:

https://developer.gnome.org/gtk3/stable/GtkSpinButton.html

  It is used in IupText+SPIN attribute.

  I guess you could implement your own. The IupSpin/IupSpinBox provides a
base implementation using two IupButton that you can redifine their
callbacks.

Best,
Scuri


Em seg, 19 de nov de 2018 às 14:13, Johann Philippe via Iup-users <
iup-users@lists.sourceforge.net> escreveu:

> Hello,
>
> I would like to put an anti bound to some of the spinboxes i use in my
> program, so that it cannot keep incrementing if i sustain the button
> pressed (the sensibility is quite high with GTK, sometimes even a really
> quick click makes a +2 increment or more).
> Since there is no attribute for anti bound, i thought it could be done if
> i get the information when the spin button is released. But in the spin_cb,
> i only get the information when i click, not when i release the button.
> Would it be possible for you or maybe easy to implement such a function ?
> Maybe there is some hack i could do to get the button release ?
> Or do I need to implement my own spin here ?
>
> Thanks in advance.
> Johann
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to