Posted: Fri Jun 21, 2002 10:45 pm
Restored from previous forum. Originally posted by PB.
Hi Fred,
As per Eric's request, can the SpinGadget increase its value when the top arrow
is clicked, instead of decreasing it like it currently does?
Also, I was thinking it would be good if when using SetGadgetText on it, that
it automatically sets SetGadgetState as well, so the progammer doesn't have to
do it? Like this:
SetGadgetText(#sg,"5") : SetGadgetValue(#sg,5) ; Current way.
SetGadgetText(#sg,"5") ; New way would internally do SetGadgetValue to match "5".
Lastly, if you currently use SetGadgetText on the SpinGadget, then an infinite
loop of events occur because SetGadgetText creates a "change" event for the
field... so perhaps this gadget should not create a "change" event when using
the SetGadgetText command?
PB - Registered PureBasic Coder
Hi Fred,
As per Eric's request, can the SpinGadget increase its value when the top arrow
is clicked, instead of decreasing it like it currently does?
Also, I was thinking it would be good if when using SetGadgetText on it, that
it automatically sets SetGadgetState as well, so the progammer doesn't have to
do it? Like this:
SetGadgetText(#sg,"5") : SetGadgetValue(#sg,5) ; Current way.
SetGadgetText(#sg,"5") ; New way would internally do SetGadgetValue to match "5".
Lastly, if you currently use SetGadgetText on the SpinGadget, then an infinite
loop of events occur because SetGadgetText creates a "change" event for the
field... so perhaps this gadget should not create a "change" event when using
the SetGadgetText command?
PB - Registered PureBasic Coder